Skip to content

Commit

Permalink
chore(notes:git): update rebase root command
Browse files Browse the repository at this point in the history
  • Loading branch information
rootCircle committed Oct 28, 2024
1 parent 1914ac6 commit 92871bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/notes/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ git revert HEAD~x # where x is x+1th commit one wanna rollback to
git rebase --interactive HEAD~n # n is the number of commit you want to squash
# calling above command will open a terminal
# replace `pick` with `s` to squash a commit i.e., to remove.
git rebase -i --root main # alternative if rebase from start
git push --force
```

Expand Down

0 comments on commit 92871bc

Please sign in to comment.