20d500b0e260c7cb030b99d788f50776da911479
coding/git.md
... | ... | @@ -15,6 +15,11 @@ force push of a previous commit |
15 | 15 | git push -f origin <commit_id>:<branch> |
16 | 16 | ``` |
17 | 17 | |
18 | +delete remote branch |
|
19 | +``` |
|
20 | +git push --delete origin <branch> |
|
21 | +``` |
|
22 | + |
|
18 | 23 | reset local branch after a forced-update (above) |
19 | 24 | ``` |
20 | 25 | git fetch |