git command
作者:互联网
1.git
创建分支:git branch mybranch
切换分支:git checkout mybranch
创建并切换分支:git checkout -b mybranch
查看分支:git branch
切换分支:git checkout v1
将本地代码更新至与远程仓库一致:git pull
2.提交代码
- 添加或者修改文档:git add file1.txt
- 删除文档:git rm file2.txt
- 添加说明:git commit -m “modify file"
- 提交:git push origin develop
标签:git,command,branch,txt,checkout,mybranch,分支 来源: https://www.cnblogs.com/recordmoment/p/11927372.html