mirror of
https://github.com/cupcakearmy/memoir.git
synced 2024-12-22 16:16:31 +00:00
17 lines
217 B
Markdown
17 lines
217 B
Markdown
# Revert branch to commit
|
|
|
|
Revert a branch to a certain commit, discarding newer ones.
|
|
|
|
```bash
|
|
# Specific commit
|
|
git reset --hard a1d6424
|
|
|
|
# Commits back
|
|
git reset --hard HEAD@{3}
|
|
```
|
|
|
|
```bash
|
|
# Push
|
|
git push -f
|
|
```
|