⪼ Made with 💜 by realpolyglot.dev
- How to Undo a Merge in Git
-
"git reset --merge"
-
"git merge --no-commit"
git checkout new/api-0001-add-screenshots-resource
git pull
git checkout -
git merge new/api-0001-add-screenshots-resource
git conflicted
git diff api/routes/index.ts
git checkout --ours api/routes/index.ts
git branch | awk -F'*' '{ print $1,$2 }' | tr -d ' '
git branch | awk -F'*' '{ print $1,$2 }' | tr -d ' ' | fzf
git checkout (git branch | awk -F'*' '{ print $1,$2 }' | tr -d ' ' | fzf)
git checkout -
git merge @{-1}