git 的基本命令

git 命令
git status
git add filename
git commit -m 'zhushi'
git remote origin 远程仓库的地址
git clone 仓库的地址
git branch --set-upstream-to=远程仓库名/分支名 本地分支名 #关联分支
git pull #git push 前需要git pull 合并分支
git push origin master #提交远程仓库代码
查看远程库信息,使用git remote -v
在本地创建和远程分支对应的分支,使用git checkout -b branch-name origin/branch-name,本地和远程分支的名称最好一致;

原文地址:https://www.cnblogs.com/cppddz/p/5487327.html