美文网首页
Git与GitHub笔记(2)

Git与GitHub笔记(2)

作者: ACphart | 来源:发表于2018-07-29 21:43 被阅读1次

这里是本人所需的相关笔记,如果需要详细的教程可以点击这里
附上git常用命令git cheatsheet

从远程仓库克隆复制

  1. 准备一个远程仓库,如https://github.com/acphart/git_learn.git
  2. 使用命令
$ git clone https://github.com/acphart/git_learn.git

分支管理

命令 说明
git branch 查看分支,当前分支前会标一个*号
git branch <name> 创建分支
git checkout <name> 切换分支
git checkout -b <name> 创建+切换分支
git merge <name> 合并某分支到当前分支
git branch -d <name> 删除分支
git log --graph 查看分支合并图

标签管理

相关文章

网友评论

      本文标题:Git与GitHub笔记(2)

      本文链接:https://www.haomeiwen.com/subject/srptvftx.html