Skip to content

Instantly share code, notes, and snippets.

View CervEdin's full-sized avatar

Erik Cervin Edin CervEdin

  • sweden
View GitHub Profile
CervEdin /
Last active December 26, 2021 08:38
Interactive force push
git log --oneline --graph @{upstream}...HEAD
git diff @{upstream} HEAD
read -p "Push (with force)?" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]
CervEdin / gist:21a4dce8ab5a82936788d666e7737b52
Created April 25, 2021 21:46
Recursively check sub-directory git status
find . -type d -name .git -execdir git status \;