What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-14 00:51:07
how to move master changes to branch
git checkout -b newfeat master git rebase --onto working-branch origin/master newfeat git checkout master git reset --hard origin/master At this point you have: *master pointing to the last pushed commit (origin/master) *working-branch never changed *a n... 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-09-13 08:25:02
git pull vs rebase
git pull and git rebase are not interchangeable, but they are closely connected. git pull fetches the latest changes of the current branch from a remote and applies those changes to your local copy of the branch. Generally this is done by merging, i.e. t... Add solution
Best helpers
Ranking is empty