git checkout targetbranch
git pull --rebase origin/targetbranch
git checkout -b feature/prbranch
git merge --squash working/sourcebranch
git review
git rebase --onto <new-base> <old-base> <head>
Move everything after <old-base>
in the current branch to sit on top of <new-base>
instead.
git branch --set-upstream-to=origin/dev
git review -d c13da21e-ee0a-5712-95e1-5c9c26e5dee5
Comment “recheck” on the review or find the job in Alfred and run retrigger.
git push origin :<branch>
git push origin <branch>
git reset --hard origin/<branch>
git clean -fd
git rm --cached <filename>
git rm --cached -r <directory>
git rebase --interactive HEAD~2
git reset --hard origin/<branch>
git clean -fd
git checkout -- <filename>
git checkout <branch> -- <filename>
git reset --hard ORIG_HEAD
Git reporting requires the my-get.ps1 module.
git fetch -p
Get-Branches -NotMerged | where { $_.Username -like "Aaron*" } | Format-Table -AutoSize
Get-Branches -NotMerged | where { $_.Branch -NotLike "origin/release*" -And $_.Branch -NotLike "origin/master" -And $_.Branch -NotLike "origin/dev" } | Format-Table -AutoSize
git log --oneline | Select-String -Pattern ".*voice.*"
git show fd1a7f61
git clone --recursive mypath
git submodule update --init --recursive
git format-patch -n HEAD^
git apply my-changes.patch