Skip to content

Instantly share code, notes, and snippets.

@infinex
Last active April 23, 2021 09:28
Show Gist options
  • Save infinex/fcdabd511c293a77312f83f77843b395 to your computer and use it in GitHub Desktop.
Save infinex/fcdabd511c293a77312f83f77843b395 to your computer and use it in GitHub Desktop.
git
# undo git add
git rm --cached -r dir
# apply patches
git diff master Branch1 > ../patchfile
git checkout Branch2
git apply ../patchfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment