Git Pentesting
Git Commands for the Repository Investigation
Check Information
# Basic information
git show
git show <branch-name>
git show <commit-id>
git show <tag-name>
git --git-dir /path/to/.git show
# Configuration
git config --list
# Commit history
git log
git log --stat
git --git-dir /path/to/.git log --stat
# Compare the two commits
git diff
git diff --staged
git diff --cached
# Working tree status
git statusBack to the Previous Commits
Search the Other Branches
Clone the Repository
Find Tags
Restore Deleted Files
GitHub Dorks
Search Target Repository
Find Sensitive Data in the Repository
Find Email Address
Last updated