Skip to content

Commit

Permalink
Update 2018-06-24-git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nighon authored Nov 19, 2024
1 parent d919f83 commit cfca740
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _posts/2018-06-24-git.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ $ git branch -d feature-branch
$ git push origin --delete feature-branch
```

```console
# 推送到 dev1 分支
$ git commit -m 'something'
$ git push origin dev1

# 把 dev1 分支强制推送到 dev2 分支(**注意会覆盖 dev2**
$ git push origin +HEAD:dev2
```

## 常用指令 (Cheat Sheet)

`HEAD~` 为示范 commit id<br>
Expand Down

0 comments on commit cfca740

Please sign in to comment.