文檔:https://git-scm.com/docsgit
列出全部遠程空間:spa
git remote -v
重命名遠程空間:code
git remote rename <old> <new>
刪除遠程空間:blog
git remote remove <name>
列出全部分支(本地+遠程):rem
git branch -a
查看本地與遠程分支對應關係:文檔
git branch -vv
關聯本地與遠程分支:get
git branch -u <遠程空間/遠程分支> [<本地分支>]
當遠程空間剛剛創建,沒有分支時,push出一個並創建關聯:it
git push -u <遠程空間> <遠程分支>