git指令


常用命令:
git clone 代码仓库网址
git config user.name 'name'
git config user.email 邮箱(一定要按照邮箱格式)
git init
git pull
git pull origin master
git push
git push origin master
git add .
git add file1 file2
git commit -m "描述信息"
git commit -am "描述信息"
git status
git log
git reflog
git branch
git tag -a 版本号 -m "描述信息"
git push origin 版本号
git tag -d 版本号
git push --delete origin 版本号
git checkout 版本号
git checkout 分支
git checkout -b 分支
git branch -D 分支
git merge 分支 #要在主分支合并子分支
git push -u origin 子分支 #不合并 直接上传子分支





被折叠的 条评论
为什么被折叠?



