Repository
Add remote repository
1 | git remote add origin git@github.com:... |
origin
is the name of the repository
Check remote repository settings:
1 | git remote -v |
Before push to remote repository, make sure the branch name is the same.
Branch
find all the branch
1 | git branch -a |
find all the branch on remote repository
1 | git remote -r |
Rename
1 | git branch -m oldBranchName newBranchName |
Move to branch:
1 | git checkout [branchname/SHA-1] |