GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - HoushCE29/gitout: A cute little script to clear out them old branches!

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Git-Out

A script to speed up cleaning out old local branches for git repositories.

Building

To build the source code and scripts, simply run:

gradlew clean build

The resulting zipped scripts are generated to:

/build/distributions

It's not recommended to run this via Gradle, nor via the standalone jar.

Running

After building and unzipping the distribution, the scripts can be used. It's recommended to add the absolute path to bin/gitout to the system's path environment variable.

To simply run a basic cleaning, navigate to your repository directory and run:

gitout

If you wish to remove branches regardless of them being merged with the remote branch, then run with the mergedOnly flag:

gitout --mergedOnly=false

By default, the mergedOnly flag is set to true. When this flag is set to true and the branch has a remote counterpart, the branch will only be removed if the remote is in sync with the local copy.

If you want to retain specific branches, then run with the exclude flag:

gitout --exclude=[branch-to-keep1,branch-to-keep2,branch-to-keep3]

The "active" branch and master branch are always excluded.

Of course, all of these flags can be appended at once:

gitout --mergedOnly=false --exclude=[branch-to-keep]

About

A cute little script to clear out them old branches!

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.