- git clone url
从远程仓库克隆代码
- 创建分支并提交代码
Step 1:在本地新建分支
git branch newBranch
Step 2:把本地分支push到远程
git push origin newBranch
Step 3:切换分支到newBranch
git checkout newBranch
Step 4:查看本地修改
git status
Step 5:添加本地修改
git add .
Step 6:commit修改
git commit -m “XXXX”
Step 7:push 代码
Git push
https://blog.csdn.net/roczheng1990/article/details/82018568
https://www.cnblogs.com/bluestorm/p/6252900.html
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> 1.2.2_700
2、git 创建、删除tag
git tag 1.2.711_5 创建1.2.711_5tag
git push origin 1.2.711_5 将tag 1.2.711_5推送到远程仓库
git tag -d 1.2.711_5 删除本地tag
3、git 查看远程地址
git remote -v