Skip to content

Instantly share code, notes, and snippets.

@skkzsh
Last active June 1, 2020 16:32
Show Gist options
  • Select an option

  • Save skkzsh/9372d70561fd4621f5cb2530ab89a577 to your computer and use it in GitHub Desktop.

Select an option

Save skkzsh/9372d70561fd4621f5cb2530ab89a577 to your computer and use it in GitHub Desktop.
Git
find . -type d -maxdepth 1 -mindepth 1 | xargs -I{} bash -c 'echo; echo {}; cd {}; git fetch -p; cd -> /dev/null'
git fetch -p;
git switch master; git pull;
git branch --merged master | egrep -v "master|develop|release" | xargs git branch -d;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment