Skip to content

Instantly share code, notes, and snippets.

@bitmaybewise
Last active October 13, 2015 20:48
Show Gist options
  • Save bitmaybewise/4254470 to your computer and use it in GitHub Desktop.
Save bitmaybewise/4254470 to your computer and use it in GitHub Desktop.
Git commands

List deleted files and removes each

$ git ls-files -d | xargs git rm

Show a text-based graphical representation

$ git log --graph

Ignoring changes in tracked files

$ git update-index --assume-unchanged <file>
$ git update-index --no-assume-unchanged <file>

Remove untracked files and directories from working tree

$ git clean -d -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment