Skip to content

Instantly share code, notes, and snippets.

@yusuke024
Last active December 20, 2015 16:29
Show Gist options
  • Save yusuke024/6161952 to your computer and use it in GitHub Desktop.
Save yusuke024/6161952 to your computer and use it in GitHub Desktop.
# Git clean repo and remove untracked files and directories.
git clean -fxd
# Count number of commits from <commit/branch> to <commit/branch>
git log --oneline <start_but_excluded_commit/branch>..<end_included_commit/branch> | wc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment