提交四步骤:
1 git status
2 git add .
3 git commit -m "备注"/git commit -am "备注"(am用于为添加add的tags)
4 git push
查看本地分支和远程分支
git branch
git branch -r
拉取远程分支并创建本地分支
git checkout -b 本地分支名 origin/远程分支名
git fetch origin 远程分支名:本地分支名(创建后需手动切换分支)
提交四步骤:
1 git status
2 git add .
3 git commit -m "备注"/git commit -am "备注"(am用于为添加add的tags)
4 git push
查看本地分支和远程分支
git branch
git branch -r
拉取远程分支并创建本地分支
git checkout -b 本地分支名 origin/远程分支名
git fetch origin 远程分支名:本地分支名(创建后需手动切换分支)