You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Seems like) To move n commits (not pushed to remote branch yet) from master branch to a new branch (mynewbranch)
git branch mynewbranch # copy current commits to the new branch
git reset --hard HEAD~1 # reset 1 commit, replace 1 to n or any other natural number you want.
To change last commit message.
git commit --amend -m 'new message'
Force change the commit on the remote branch
git push <remote> <branch> -f
Change all user.email in the directory
for d in ./*/ ; do (cd "$d" && git config --local user.email [email protected]); done