GIT教程【一】从远程获取代码到提交代码

版权声明: https://blog.csdn.net/jiangxuexuanshuang/article/details/88209773
#clone
git clone https://github.com/spring-projects/spring-framework.git
#编辑代码:忽略
#更新代码
cd spring-framework
git pull
#查看变更
git status
#添加到本地暂存区
git add .
#提交到本地仓库
git commit -m "add project"
#推送到远程服务器仓库:从本地develop分支到远程develop分支
git push origin develop:develop

猜你喜欢

转载自blog.csdn.net/jiangxuexuanshuang/article/details/88209773