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 -
-
Shell/Bash 2021-10-04 21:29:02
git change commit id email
# For one commit git commit --amend --author="Author Name <[email protected]>" # for multiple commits git rebase -i B #if you need to edit A, use git rebase -i --root #change the lines for both C and D from pick to edit #Once the rebase... Add solution -
-
Shell/Bash 2021-08-31 08:25:02
Change Git commit user name and author
# For one commit git commit --amend --author="Author Name <[email protected]>" # for multiple commits git rebase -i B #if you need to edit A, use git rebase -i --root #change the lines for both C and D from pick to edit #Once the rebase... Add solution
Best helpers
Ranking is empty