`

git 常用命令

阅读更多

1、从远程拉代码库到本地

https://github.com/yueyemaitian/little-rpc.git

 2、添加代码,提交到本地仓库(在git工作目录下)

git add .
git commit . -m 'comment'

 3、提交代码到远程仓库

git push

 4、创建tag

git tag -a v0.1-simple_nio -m 'simple nio, with connection and close error'

5、查看tag信息

git tag

6、提交代码到tag

git push origin [tag name]

7、删除tag

//本地删除
git tag -d [tag name] 
//远程删除
git push origin :refs/tags/[tag name]

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics