Skip to content

Identifies branches ๐ŸŒฟ with commits ahead of the current branch

License

Notifications You must be signed in to change notification settings

javanile/git-ahead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Git-Ahead ๐Ÿš€

Git-Ahead is a tool that identifies branches ๐ŸŒฟ with commits ahead of the current branch, providing a useful indication of technical debt to manage in a Git repository.

Installation ๐Ÿ› ๏ธ

To install Git-Ahead, you need to clone this repository and ensure you have necessary development tools to run the bash script:

git clone https://github.com/javanile/git-ahead.git
cd git-ahead
make install

There are no additional dependencies outside of Git.

Usage ๐Ÿ–ฅ๏ธ

To use Git-Ahead, run the provided bash script. Make sure you're on your current branch before running it. Here's an example usage:

git ahead

This will return the list of branches with commits ahead of your current branch like this.

TASK3489-login-page            0 | 30
TASK2954-dashboard             8 | 24
TASK4037-user-profile         91 | 6
TASK2697-data-processing     144 | 6
TASK3199-error-handling        0 | 3
TASK3644-logging               8 | 1
TASK3351-testing              38 | 1
TASK3748-documentation       216 | 1
TASK3105-refactoring         229 | 1

Advantages ๐ŸŒŸ

  • Identification of Technical Debt: Getting the list of branches with commits ahead gives a clear indication of technical debt in the Git repository. Branches with more commits might indicate areas of code that require more attention and maintenance.

  • Priority Management: Knowing which branches have more work in progress can help establish priorities in software development. You can focus efforts on areas of code that require immediate attention.

DevOps ๐Ÿ› ๏ธ

For DevOps professionals, having an overview of updated branches can be extremely useful in managing development and release processes. Knowing branches with commits ahead provides crucial information for assessing project status and planning technical debt management activities.

Contributing ๐Ÿค

Pull requests are welcome. For suggestions and improvements, please open an issue before submitting a pull request.

License ๐Ÿ“

This project is licensed under the MIT License. See the LICENSE file for details.

About

Identifies branches ๐ŸŒฟ with commits ahead of the current branch

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published