Skip to content

Instantly share code, notes, and snippets.

View CervEdin's full-sized avatar

Erik Cervin Edin CervEdin

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