git initgit add <file>git commit -m "explain info"git push [-u] <repos branch>git loggit statusgit config -lgit config user.name(or email) " "git remote [-v] #查看本地增加了哪些近程地址git remote add <repos> <address>git remote remove <address>git fetch <repos branch> #拉取近程仓库的内容,不进行合并git pull <repos branch> #拉取近程仓库的master分支后与以后本地分支间接合并git clone [-b <branch>] <address> #复制近程指定分支下代码,-b 分支名称git branch <branch> [-a/-r] [-d] #创立分支,查看全副/近程分支,删除本地分支git branch -m <old_branch> <new_branch> #本地分支重命名git switch <branch> #切换分支git push <repos> -d <branch> #删除近程分支