What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-16 11:09:34
how to remove a commit from origin branch
1 $git rebase -i HEAD~2 Add solution -
TypeScript 2021-11-12 19:21:11
squash commits on branch
$ git rebase -i HEAD~4 At the interactive screen that opens up, replace pick with squash at the top for all the commits that you want to squash. Save and close the editor through esc --> :wq $ git push origin branch-name --force Add solution -
TypeScript 2021-11-02 19:17:13
squash commits in remote branch
$ git rebase -i HEAD~4 At the interactive screen that opens up, replace pick with squash at the top for all the commits that you want to squash. Save and close the editor through esc --> :wq $ git push origin branch-name --force Add solution -
Best helpers
Ranking is empty