Update git-branch.md
This commit is contained in:
parent
eb2a0eabe1
commit
b81b7b73c9
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue