1e772565bf59cb6614e60ccde83a3b1011d04071
coding/git.md
... | ... | @@ -1,7 +1,5 @@ |
1 | 1 | # git |
2 | 2 | |
3 | -[fork_and_branch_workflow](fork_and_branch_workflow) |
|
4 | - |
|
5 | 3 | undo merge that hasn't been pushed |
6 | 4 | ```zsh |
7 | 5 | git reset --merge HEAD~1 |
... | ... | @@ -11,8 +9,10 @@ roll back hard |
11 | 9 | ``` |
12 | 10 | git reset --hard <commit/tag> |
13 | 11 | ``` |
14 | - |
|
15 | 12 | |
16 | -## ref |
|
17 | -- :1: https://www.atlassian.com/git/tutorials/making-a-pull-request |
|
18 | -- :2: https://git-scm.com/book/en/v2/Git-Branching-Rebasing |
|
13 | +[making a pull request][] |
|
14 | + |
|
15 | +[branching and rebasing][] |
|
16 | + |
|
17 | +[making a pull request]: https://www.atlassian.com/git/tutorials/making-a-pull-request |
|
18 | +[branching and rebasing]: https://git-scm.com/book/en/v2/Git-Branching-Rebasing |