Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrzacsmith/emoji-commits
Simple commit philosophy that encourages consistent, easy to understand commits using seven categories and enhanced with emojis!
https://github.com/mrzacsmith/emoji-commits
emoji
Last synced: 14 days ago
JSON representation
Simple commit philosophy that encourages consistent, easy to understand commits using seven categories and enhanced with emojis!
- Host: GitHub
- URL: https://github.com/mrzacsmith/emoji-commits
- Owner: mrzacsmith
- License: mit
- Created: 2021-12-26T23:52:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T17:01:37.000Z (almost 3 years ago)
- Last Synced: 2023-02-28T12:57:32.908Z (almost 2 years ago)
- Topics: emoji
- Homepage:
- Size: 26.4 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Emoji Commits
### PHILOSOPHY
In order to reduce inconsistencies with work commits, and to provide a uniform system that is visually easy to understand, emoji commits was modified to fit the organization needs.
1. **IMPERATIVE** ↓
- Make your Git commit messages imperative.
- Write a commit message like you're giving an order.
- E.g., Use ✅ `Add` instead of ❌ `Added`.
- E.g., Use ✅ `Create` instead of ❌ `Creating`.2. **RULES** ↓
- A small number of categories — easy to memorize.
- Nothing more nothing less.
- E.g. `📦 NEW`, `👍 IMPROVE`, `🐛 FIX`, `📖 DOCUMENT`, `🚀 READY`, `🤖 TESTING`, and `☣️ BREAKING`3. **ACTIONS** ↓
- Make git commits based on the actions you take.
### GETTING STARTED
Only use the following Git Commit Messages. A simple and small footprint is critical here.
- `📦 NEW: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when you add something entirely new.
> E.g. `📦 NEW: Add Git ignore file`- `👍 IMPROVE: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when you improve/enhance piece of code like refactoring etc.
> E.g. `👍 IMPROVE: Remote IP API Function`- `🐛 FIX: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when you fix a bug.
> E.g. `🐛 FIX: Case conversion`- `📖 DOCUMENT: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when you add documentation like `README.md`, or even inline docs.
> E.g. `📖 DOC: API Interface Tutorial`- `🚀 READY: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when you are complete with a feature and ready for testing.
> E.g. `🚀 READY: Feature`- `🤖 TESTINT: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when it's related to testing.
> E.g. `🤖 TEST: Mock User Login/Logout`- `☣️ BREAKING: IMPERATIVE_MESSAGE_GOES_HERE`
> Use when releasing a change that breaks previous versions.
> E.g. `☣️ BREAKING: Change authentication protocol`### GIT ALIASES
- `git inc` => Takes no message and is for the initial commit ONLY
=> 🎉 INITIAL COMMIT
- `git fb ` => Takes a branch name and creates a `feature/branch` and set the upstream to that branch
- `git bb ` => Takes a branch name and creates a `breaking/branch` and set the upstream to that branch
- `git pub ` => Takes a branch name and pulls origin `branch`
- `git pom` => Takes no parameters and does a `git pull origin main`
- `git rmb ` => Takes a branch name to delete
- `git new ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 📦 NEW: 'message'
- `git imp ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 👍 IMPROVE: 'message'
- `git fix ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 🐛 FIX: 'message'
- `git rdy ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 🚀 READY: 'message'
- `git doc ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 📖 DOCUMENT: 'message'
- `git tst ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> 🤖 TESTING: 'message'
- `git brk ''` => Takes a commit message, and uses `git cap` to add, commit, and push
=> ☣️ BREAKING: 'message'
- `git cap ''` => Takes a commit message, to add, commit, and push### GITCONFIG UPDATE
- Update your gitconfig file with the following codesnippet
- `code ~/.gitconfig````js
[init]
defaultBranch = main
[alias]
# Git Commit, Add all and Push — in one step.
cap = "!f() { git add .; git commit -m \"$@\"; git push; }; f"
# NEW.
new = "!f() { git cap \"📦 NEW: $@\"; }; f"
# IMPROVE.
imp = "!f() { git cap \"👍 IMPROVE: $@\"; }; f"
# FIX.
fix = "!f() { git cap \"🐛 FIX: $@\"; }; f"
# READY.
rdy = "!f() { git cap \"🚀 READY: $@\"; }; f"
# DOCUMENT.
doc = "!f() { git cap \"📖 DOCUMENT: $@\"; }; f"
# TESTING.
tst = "!f() { git cap \"🤖 TESTING: $@\"; }; f"
# BREAKING CHANGE.
brk = "!f() { git cap \"☣️ BREAKING: $@\"; }; f"
# FEATURE BRANCH.
fb = "!f() { git checkout -b "feature/$@"; git push -u origin "feature/$@"; }; f"
# BREAKING BRANCH.
bb = "!f() { git checkout -b "breaking/$@"; git push -u origin "breaking/$@"; }; f"
# INITIAL COMMIT.
inc = "!f() { git add .; git commit -m \"🎉 INITIAL COMMIT\"; git push -u origin main; }; f"
# Pull origin .
pub = "!f() { git pull origin "$@ "}; f"
# Pull origin main.
pom = "!f() { git pull origin main; }; f"
# Remove .
rmb = "!f() { git branch -D "$@" }; f"
```### Credits
- Emoji Commits is a modified version of Emoji-Logs.
- **Last Updated**: Jan 26, 2023