Revert last merge commit
- git revert -m 1 "commit which you want to revert"
- git push -u origin master or git push
Delete your merge commit from remote branch
- git reset --hard "commit where you want to go" . all commits after that will be deleted after both these steps.
- git push --force
Squashing multiple commits into a single one
- git rebase -i head~10
- replace pick to s for the commits that hasto be merged
Replace folder from another branch
git rm -r /path/to/folder
git checkout OTHER_BRANCH -- /path/to/folder
No comments:
Post a Comment