![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
Talanz
这个作者很懒,什么都没留下…
展开
-
git 基础命令使用方法
1.创建分支 $ git branch mybranch 2.查看本地分支 $ git branch 3.查看远程分支 $ git branch -a 4.查看本地分支与远程分支的改动 $git status 5.删除分支 $ git branch -d mybranch 6.切换到mybranch这个分支 $git checkout mybranch 7.将本原创 2017-04-19 10:09:04 · 356 阅读 · 0 评论 -
git配置文件config用户名和邮箱的设置和查看
1.设置用户名 $ git config --global user.name "yourname" 2.设置用户邮箱 $ git config --global user.email myemail@qq.com 3.查看git设置列表信息 $ git config --list 4.查看用户名 $ git config user.name原创 2017-04-24 11:23:42 · 51177 阅读 · 1 评论 -
git 版本控制 回退到某个版本
1.查看历史版本commit及其对应的版本号 git reflog 或 git log 如: cxm@cxm-ThinkPad-Edge-E431:~/workspaces/yolanda-pms$ git reflog d4941ec HEAD@{0}: reset: moving to d4941ec 4d28046 HEAD@{1}: commit: test d494原创 2017-05-26 11:55:13 · 2639 阅读 · 0 评论