Occasionally want to use git command memo

Documentation: https://git-scm.com/docs

List all remote space:

git remote -v

Rename remote space:

git remote rename <old> <new>

Delete remote space:

git remote remove <name>

List all branches (local + remote):

git branch -a

View correspondence between local and remote branch:

git branch -vv

Associate local and remote branch:

git branch -u <spatial remote / remote branch> [<local branch>]

 

Guess you like

Origin www.cnblogs.com/ahdung/p/11498162.html