Git

  • Basic Usage

## ------------------| Git Genaral
git clone <URL>
git status
git add .
git status
git commit -m "CommitComment>
git push 

## ------------------| Git Branch
git checkout -b <BranchName>
git status
git add .
git commit -m "CommitComment>
git push --set-upstream origin <BranchName>

## ------------------| Git Basic
git log
git status
git reflog
git reset --hard
git diff <hash>
  • Git Hooks

## ------------------| sudo git pull
## put shell in 
vi .git/hooks/post-merge
chmod +x .git/hooks/post-merge
## ------------------| Finder
python3 gitfinder.py -i urllist.txt

## ------------------| Dumper
./gitdumper.sh http://target.tld/.git/ dest-dir

## ------------------| Extractor
./extractor.sh source-dir destination-dir

Last updated