Skip to content

Instantly share code, notes, and snippets.

@jasonalderman
Created June 2, 2017 07:21
Show Gist options
  • Save jasonalderman/53d03fb43c18f3b21e318e82e4e08862 to your computer and use it in GitHub Desktop.
Save jasonalderman/53d03fb43c18f3b21e318e82e4e08862 to your computer and use it in GitHub Desktop.
Git commands I'm learning are rather helpful.

Preview a merge without merging.

git merge --no-commit --no-ff <otherbranch>

Diff the filenames only, with status

git diff --name-status <hash1> <hash2>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment