Update git-branch.md
This commit is contained in:
parent
bc51528f1a
commit
eb2a0eabe1
|
@ -71,3 +71,15 @@ Works for tags, too!
|
|||
```bash
|
||||
git show-ref HEAD -s
|
||||
```
|
||||
### Reset branch and remove all changes
|
||||
|
||||
```bash
|
||||
git reset --hard
|
||||
```
|
||||
### Undo commits to a specific commit and push to branch
|
||||
|
||||
```bash
|
||||
git reset --hard [commitID]
|
||||
//Now push to your branch
|
||||
git push --force
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue