git branch
git clone repo_location
git pull origin branch_name
git push origin branch_name
git commit -S[GPG key]
git merge branch_to_merge -S[GPG key]
git merge brach_to_merge --no-commit --no-ff
git status
git stash
git stash apply
git diff
git diff --cached
git fetch
and git merge
git rm --cached <filePath>
git reset -- <filePath>
git pull origin $(git branch | awk '/*/ {print $2}')
git checkout -b new_branch
git reset PATH
git remote add origin ssh://login@IP/path/to/repository
git remote -v
git remote add origin http://IP/path/to/repository
git remote set-url origin https://github.com/username/repo
git remote update
git show GITCOMMITHASH
git diff BRANCH_NAME PATH_INSIDE_REPO
git branch -D BRANCH_NAME
git commit --author="Name <email@example.com>"
git commit --amend --author="Name <email@example.com>"
git status
git add -A
--local
flag is default, for global use --global
flag instead of --local
flag
git config --local user.signingkey "GPG_SHORT_ID"
git config --local commit.gpgsign true
git config --local user.email "name@domain"
git config --local user.name "Name"
git config --local user.username "username"
git config --global gpg.program $(Resolve-Path (Get-Command gpg | Select-Object -Expand Source) | Select-Object -Expand Path)