main git commands code example Example 1: git basic commands git clone /path/to/repository Example 2: git basic commands git push origin <branchname>