Git——学习笔记

1、指定用户身份

[root@yelhali learngit]# git config --global user.name "xuyj"
[root@yelhali learngit]# git config --global user.email "892575153@qq.com"

 2、添加/提交

[root@yelhali learngit]# git add [文件名]
[root@yelhali learngit]# git commit -m [添加说明]

3、基本命令

# git checkout -b [分支名]  //创建并切换分支,等同于:

  # git branch [分支名]

  # git checkout [分支名]

# git merge [分支名]  //将当前分支转移到某分支

#git branch -d [分支名]  //删除某分支

 

posted @ 2018-11-16 13:12  听风就是雨~  阅读(106)  评论(0编辑  收藏  举报