首页 > 其他 > 详细

git教程

时间:2021-01-17 21:40:46      阅读:23      评论:0      收藏:0      [点我收藏+]

版本创建

git初始化, 设置config, 生成ssh-key
git init git config --global user.name="your name" git config --global user.eramil ="yourname@mail.com" ssh-keygen

过程操作

git add . git commit git push git pull git log git reflog git checkout <path/file>

版本控制 (版本穿梭,标签管理)

git reset --hard <commmitID>/<tag> git tag git show tag

版本分支 (分支管理)

git branch git branch <branchname> git switch <branchname> git switch -b <branchname> git checkout -b <branchname> git merge <branchname>

git教程

原文:https://www.cnblogs.com/cyang9/p/14289809.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!