赞
踩
国外的github,国内的gitee,以及企业上使用的gitlab都是开发过程中使用较多的代码托管工具,它能够提供代码开发的效率。
git branch
显示当前处于master分支,新增的代码不能去提交到现有的分支,应该同一迁移到新分支,这里新分支为user
git status
git add .
然后使用 git status查看
git commit -m "完成用户列表功能的开发"
git status
git push -u origin user
把本地的分支推送云端origin的仓库中,同事以user分支进行保存
git branch
git checkout master
git merge user
git push
因为云端已经有master分支,所以这里直接使用push提交到云端,不需要 -u
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。