Update git-branch.md

This commit is contained in:
Rico Sta. Cruz 2020-01-20 16:15:24 +11:00 committed by GitHub
parent eb2a0eabe1
commit b81b7b73c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -76,10 +76,12 @@ git show-ref HEAD -s
```bash ```bash
git reset --hard git reset --hard
``` ```
### Undo commits to a specific commit and push to branch
### Undo commits to a specific commit
```bash ```bash
git reset --hard [commitID] git reset --hard $commitID
//Now push to your branch
# Now push to your branch
git push --force git push --force
``` ```