| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Create a commit prefixed with the current branch name.
Story behind Smart Commit. ⚡
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/commitIf 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"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.
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
| Back | FazBrowse Home | New Git URL |