Git Tools
Git Commands
# Move within the .git directory
cd .git
# List commits
git log
# Write commits to a file
git log | grep commit | cut -d " " -f2 | xargs git show > commits# Show the specified commit's content
git show <commit-id># extract author name and email
git log --pretty-format:"%an %ae" | sort -u
git log | grep Author | grep -oP '(?<=Author: ).*' | sort -u | tr -d '<>'Tools
git-dumper <URL>/.git/ <output-dir>sudo gitjacker <URL> -o <output-dir># Identify websites with publicly accessible .git repos
$ ./gitfinder.py -i <input-file> -o <output-file>
# Download the files found in the .git repo
$ ./gitdumber.sh <URL>/.git/ <output-dir>
# Extract commits from a broken repo (can be used after gitdumber.sh)
$ ./extractor.sh <.git-directory> <output-dir>Last updated