git 提交代码,拉取代码

提交代码

1.查看状态

git status 

2.暂存更改

git add .

3.提交代码

git commit -m '[备注信息]'

4.将本地代码提交到远程仓库

git push
拉取代码

1.查看项目远程仓库的配置

git remote -v

2.添加远程仓库

git remote add upstream git项目地址

3.获取项目更新

git fetch upstream

4.项目分支合并

git merge upstream/master
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章