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 - sbimochan/smart-commit: Commit with current branch name.

BranchesTags
Open more actions menu

Latest commit

 

History

92 Commits
92 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
.editorconfig
.editorconfig
 
 
.smart-commit-ignore
.smart-commit-ignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
commit
commit
 
 
tests.bats
tests.bats
 
 

Repository files navigation

smart commit logo

Smart Commit

Create a commit prefixed with the current branch name.

Bats Tests

Story behind Smart Commit. ⚡

Installation

Run this command on terminal.

sudo curl https://raw.githubusercontent.com/sbimochan/smart-commit/main/commit -o /usr/local/bin/commit && sudo chmod +x /usr/local/bin/commit

Usage

  • If your current branch name is EF-803

    $ commit "New feature"
    
    # translates to
    git commit -m "EF-803: New feature"
  • If your current branch is either of dev, uat, qa, staging or master

    $ commit "New feature"
    
    # translates to
    git commit -m "New feature"

    Smart Commit Preview

Skip Branches

To add a custom branch that you would like to skip, create a .smart-commit-ignore file in your top level directory. A .smart-commit-ignore file looks like this.

Additionally, you might want to add .smart-commit-ignore to your .gitignore file.

Running Tests:

Install Bats if not already installed

sudo apt-get install bats  # For Debian-based systems
# or
brew install bats-core      # For macOS

Run tests

bats tests.bats

Contributors

  1. Aviskar KC
  2. Robus Gauli
  3. Saroj Shahi
  4. Saugat Acharya

License

MIT

About

Commit with current branch name.

Topics

gitgit-commitgit-hookshacktoberfestshellsmart

Resources

Readme
MIT license
Activity

Stars

96 stars

Watchers

0 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — 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.