Skip to content

Instantly share code, notes, and snippets.

@mhanberg
Created December 5, 2019 19:45
Show Gist options
  • Save mhanberg/6530012081496eeed752c7cb138039d4 to your computer and use it in GitHub Desktop.
Save mhanberg/6530012081496eeed752c7cb138039d4 to your computer and use it in GitHub Desktop.
gg() {
if [ -d .git ]; then
if [ $(ls .git | wc -l) -gt '0' ]; then
smerge .
else
(cd .. && gg)
fi
else
(cd .. && gg)
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment