git command Posted on 2019-02-17 | Git commandsOften used commands: 12345678910111213141516171819202122232425262728### 创建git clone <link> <dir>git init### 互动git statusgit add <file>git commit -m <message>git commit -m -a <message>### 分支git branch # 列出分支git branch <branch name> # 创建git branch -d <brach name> # 删除git checkout <branch name> # 转移git checkout -b <branch name> # 创建并转移git merge <branch name> # 合并### 记录git log### 同步git pull # 同步且merge至当前branchgit fetch # 仅同步 Post author: Mingxiang Cai Post link: https://marcopolocai.github.io/2019/02/17/git-command/ Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.