git fetch --depth=5 origin feature/BSD-745-db-simulation
git switch feature/BSD-745-db-simulation
git switch -c BSD-745 --track origin/feature/BSD-745-db-simulation
git checkout -b feature/BSD-713
git push -u origin HEAD:users/username/BSD-241-long-full-feature-name
git pull origin $(git branch --show-current)
git stash branch feature/BSD-133
git stash branch feature/BSD-133 stash@{2}
git log --graph --oneline
git rev-parse --abbrev-ref --symbolic-full-name @{u} # Remote
git branch --show-current # Local
git reset --soft HEAD~3 && git commit
git pull --depth=5 --update-shallow
git rev-parse HEAD~20 > .git/shallow # Shallow to last 20 commits
git fsck --unreachable # Will show you the list of what will be deleted
git gc --prune=now # Will actually delete your data
git fsck --unreachable # Prepare the list of what will be deleted
git prune --progress # Delete all the objects w/o references
git gc --prune=now --aggressive # Aggressively collect garbage; may take a lot of time
git fetch --depth=1 # Prune old commits. This makes the old commits and their objects unreachable.
git reflog expire --expire-unreachable=now --all # Expire all old commits and their objects
git gc --prune=now --aggressive # Remove objects older than two weeks
git gc
git repack -a -d --depth=250 --window=250 # kills in-pack garbage
git prune # kills loose garbage
git clone --progress -v --depth 10 [email protected]:akochepasov/repo123.git
git remote set-branches origin '*'
git remote set-branches origin master # To get back
git remote prune origin
git repack
git prune-packed
git reflog expire --expire=1.month.ago
git gc --aggressive