Git常用命令一览表

Git常用命令列表,以备快速查阅使用!
创建初始化
1 | ## clone an existing repository(克隆一个Git仓库到本地) |
本地有改动时
1 | ##Changed files in your working directory 除了问题时,先用该命令查看本地状态 |
提交历史相关
1 | ##Show all commits, starting with newest 查看提交历史 |
分支及标签相关
1 | ##List all existing branches 查看所有存在的分支(包含远程分支) |
提交本地及推送远程
1 | ##List all currently configured remotes 查看所有远端的列表 |
合并
1 | ##Merge <branch> into your current HEAD 将指定的分支合并到当前分支上 |
重置与回滚
1 | ##Discard all local changes in your working directory 丢弃本地加入到版本控制的所有变更 |
- Post title:Git常用命令一览表
- Post author:坤坤
- Create time:2017-09-03 10:30:19
- Post link:https://is908.github.io/2017/09/03/git-sheet/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.