Skip to content
stephanelPublic
forked from eed3si9n/git-gone
 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

See git gone: cleaning stale local branches.

license

MIT License

Cleaning stale locale branches

  • Store the bash script git-gone where you want (here: C:\users<username>)
  • Edit your .bashrc file and add the path to the PATH variable:
    export PATH=$PATH:~/
  • Open a Git bash and type the following command to ensure you see the usage instructions:
    $ git gone
  • Type the following commands to clean your local branches:
    $ git gone -pn
    $ git gone -d
    $ git gone -D
    $ git branch --merged | grep -v "\*" | grep "wip/\|pr/" | xargs git branch -d

Releases

Packages

Contributors

Languages