git 提交代码步骤

拉取服务器代码,避免覆盖他人代码 

git pull

查看当前项目中有哪些文件被修改过

git status

提交代码至缓存

git add .

将代码提交到本地仓库中

git commit -m “提交备注”

 提交至远程仓库

git push

 切换分支

git checkout master

新建分支并切换

git checkout -b 新建分支

合并分支

git merge 需要合并的分支名称

新建本地分支giid_list 提交到远端,也取名叫 good_list  

git push -u origin good_list  
原文地址:https://www.cnblogs.com/wubaiwan/p/11507843.html