Skip to content

Commit fbd3f02

Browse files
committed
πŸ“– DOC: Draft Standard
1 parent 99b3a78 commit fbd3f02

File tree

1 file changed

+146
-2
lines changed

1 file changed

+146
-2
lines changed

β€ŽREADME.md

Lines changed: 146 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,146 @@
1-
#Emoji-Log
2-
> After producing hundreds of open source software I've ended up inventing a git commitmessaging that I really like. I call it, Emoji-log
1+
<h1 align="center">
2+
<img src="https://on.ahmda.ws/pXeE/c" />
3+
4+
Emoji Log by Ahmad Awais
5+
</h1>
6+
7+
After producing [hundreds of open source software](https://github.com/ahmadawais) I've ended up inventing a git commit log standard that I really like. I call it, Emoji Log.
8+
9+
<br />
10+
11+
![Philosophy](https://on.ahmda.ws/orq5/c)
12+
13+
### Philosophy
14+
15+
I like emoji. I like ’em a lot. Programming, code, geeks/nerds, open source, all of that is inherently dull and sometimes boring. Emoji (which is, in fact, the plural of emoji) helps me add colors and emotions to the mix. Nothing bad if you want to add emotions to this 2D flat text-based world of code. I found out that instead of memorizing [hundreds of emoji](https://gitmoji.carloscuesta.me/) it's better to keep the categories small and general.
16+
17+
18+
1. **IMPERATIVE** ↓
19+
- Make your Git commit messages imperative.
20+
- Write commit message like you're giving an order.
21+
- E.g. Use βœ… `Add` instead of ❌ `Added`.
22+
- E.g. Use βœ… `Create` instead of ❌ `Creating`.
23+
1. **RULES** ↓
24+
- Small number of categories β€” easy to memorize.
25+
- Nothing more nothing less.
26+
- E.g. `πŸ“¦ NEW`,`πŸ‘Œ IMPROVE`,`πŸ› FIX`,`πŸ“– DOC`,`πŸš€ RELEASE`, and `βœ… TEST`
27+
1. **ACTIONS** ↓
28+
- Make git commits based on actions you take.
29+
- Use a good editor like [VSCode](https://code.visualstudio.com/) to commit the right files with commit messages.
30+
<br />
31+
32+
33+
![Start](https://on.ahmda.ws/osd3/c)
34+
35+
### GETTING STARTED!
36+
37+
Only use the following Git Commit Messages. Simple and small foot print is the key here.
38+
39+
1. `πŸ“¦ NEW: IMPERITIVE_MESSAGE_GOES_HERE`
40+
> Use when you add something completely new.
41+
> E.g. `πŸ“¦ NEW: Add Git ignore file`
42+
43+
1. `πŸ‘Œ IMPROVE: IMPERITIVE_MESSAGE_GOES_HERE`
44+
> Use when you improve/enhance piece of code like refactoring etc.
45+
> E.g. `πŸ‘Œ IMPROVE: Remote IP API Function`
46+
47+
1. `πŸ› FIX: IMPERITIVE_MESSAGE_GOES_HERE`
48+
> Use when you fix a bug β€” need I say more?
49+
> E.g. `πŸ› FIX: Case convertor`
50+
51+
1. `πŸ“– DOC: IMPERITIVE_MESSAGE_GOES_HERE`
52+
> Use when you add documentation like `README.md`, or even inline docs.
53+
> E.g. `πŸ“– DOC: API Interface Tutorial`
54+
55+
56+
1. `πŸš€ RELEASE: IMPERITIVE_MESSAGE_GOES_HERE`
57+
> Use when you release a new version.
58+
> E.g. `πŸš€ RELEASE: Version 2.0.0`
59+
60+
61+
1. `βœ… TEST: IMPERITIVE_MESSAGE_GOES_HERE`
62+
> Use when you release a new version.
63+
> E.g. `βœ… TEST: Mock User Login/Logout`
64+
65+
_β€” That's it for now. Nothing more nothing less._
66+
67+
68+
<br />
69+
70+
![More](https://on.ahmda.ws/orsm/c)
71+
72+
#### Workflow!
73+
74+
For quick prototyping, I have made the following functions that you can add to your `.bashrc`/`.zshrc` files and use Emoji-Log quickly.
75+
76+
77+
```sh
78+
#.# Better Git Logs.
79+
### Using EMOJI-LOG (https://github.com/ahmadawais/Emoji-Log).
80+
81+
# Git Commit, Add all, and Push β€” in one step.
82+
function gcap() {
83+
git add . && git commit -m "$*" && git push
84+
}
85+
86+
# NEW.
87+
function gnew() {
88+
gcap "πŸ“¦ NEW: $@"
89+
}
90+
91+
# IMPROVE.
92+
function gimp() {
93+
gcap "πŸ‘Œ IMPROVE: $@"
94+
}
95+
96+
# FIX.
97+
function gfix() {
98+
gcap "πŸ› FIX: $@"
99+
}
100+
101+
# RELEASE.
102+
function grlz() {
103+
gcap "πŸš€ RELEASE: $@"
104+
}
105+
106+
# DOC.
107+
function gdoc() {
108+
gcap "πŸ“– DOC: $@"
109+
}
110+
111+
# TEST.
112+
function gtst() {
113+
gcap "βœ… TEST: $@"
114+
}
115+
```
116+
117+
<br />
118+
119+
![Using](https://on.ahmda.ws/rP6e/c)
120+
121+
### USING `EMOJI-LOG`!
122+
123+
Here's a list of repos that make use of Emoji-Log.
124+
125+
- [Create-Guten-Block](https://github.com/ahmadawais/create-guten-block/commits/master)
126+
- [AhmadAwais](https://github.com/ahmadawais) β€” Latest repos on this account.
127+
- **You?!** Add your repo to the list after adding the Emoji-log badge to your readme.
128+
129+
130+
<br />
131+
132+
![badge](https://on.ahmda.ws/rOMZ/c)
133+
134+
### `EMOJI-LOG` BADGE!
135+
136+
If your repo uses `EMOJI-LOG` then you can add any of the following badges to your read me and send me a PR to list your repo here.
137+
138+
- **Flat Square**
139+
- ![emoji-log-badge-flat-square](IMG_URL)
140+
- Markdown: `![emoji-log-badge-flat-square](IMG_URL)`
141+
- HTML: `<img alt="emoji-log-badge-flat-square" src="(IMG_URL)" />`
142+
143+
- **Non-flat Round**
144+
- ![emoji-log-badge-flat-round](IMG_URL)
145+
- Markdown: `![emoji-log-badge-flat-round](IMG_URL)`
146+
- HTML: `<img alt="emoji-log-badge-flat-round" src="(IMG_URL)" />`

0 commit comments

Comments
Β (0)