git 提交代码,拉取代码

提交代码

1.查看状态git

git status

2.暂存更改fetch

git add .

3.提交代码code

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

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

git push
拉取代码

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

git remote -v

2.添加远程仓库ast

git remote add upstream git项目地址

3.获取项目更新stream

git fetch upstream

4.项目分支合并配置

git merge upstream/master

5.切换分支项目

git checkout 分支名

6.将a分支的某次提交,同时提交到bco

git cherry-pick 某次提交的id

7.退出

git cherry-pick --abort
相关文章
相关标签/搜索