Remove residual branches from a git repository
Go to file
Guillermo Bonet 25c6044888 refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
.gitignore refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
README.md refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
config.yml refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
main.js refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
package-lock.json refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00
package.json refs #5901 Added config.yml 2023-07-31 11:44:56 +02:00

README.md

Git Branch Clean

The provided code snippet represents an automated Git branch cleanup script written in JavaScript, utilizing the simple-git library. The purpose of this project is to facilitate the maintenance of a Git repository by automatically deleting merged branches that are no longer required. This script is designed to be executed periodically, cleaning up remote branches that have already been merged into the main branches (such as "test," "master," and "dev").

Requeriments

  • Git
  • Nodejs

Installation

Pull from repository.

$ git clone https://gitea.verdnatura.es/guillermo/git-branch-clean.git

Run this commands on project root directory to install Node dependencies.

$ npm install

Copy and paste the file config.yml with the name config.local.yml and put the path

Built With