Skip to content

Commit

Permalink
Update git-branch.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz authored Jan 20, 2020
1 parent eb2a0ea commit b81b7b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions git-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ git show-ref HEAD -s
```bash
git reset --hard
```
### Undo commits to a specific commit and push to branch

### Undo commits to a specific commit

```bash
git reset --hard [commitID]
//Now push to your branch
git reset --hard $commitID

# Now push to your branch
git push --force
```

0 comments on commit b81b7b7

Please sign in to comment.