File tree Expand file tree Collapse file tree 4 files changed +115
-11
lines changed Expand file tree Collapse file tree 4 files changed +115
-11
lines changed Original file line number Diff line number Diff line change 1
- ## Installation:
1
+ # Git Semantic Commit Messages
2
2
3
- 1 . Clone this repo, prefferably in your $HOME directory.
4
- ``` git clone https://github.com/russiann/git-semantic-commits ~/.git-semantic-commits ```
5
-
6
- 2 . Add the folder to your $PATH.
7
- * if using Bash, open ``` ~/.bashrc ``` with your favourite editor and add this line: <br /> ``` export PATH=$PATH:$HOME/.git-semantic-commits:$PATH ```
8
- * if using Zsh, open ``` ~/.zshrc ``` with your favourite editor and add this line: <br /> ``` export PATH=$PATH:$HOME/.git-semantic-commits:$PATH ```
9
-
10
- 3 . Save the file and source the changes in bashrc/zshrc: ``` source ~/.bashrc ``` or ``` source ~/.zshrc ```
11
-
12
- 4 . Done!
3
+ This project is based on [ Karma Git Commit Convention] ( http://karma-runner.github.io/1.0/dev/git-commit-msg.html ) .
4
+ See their commit history for examples of properly-formatted commit messages.
13
5
14
6
### Commands:
15
7
31
23
| ` git test <scope> <message> ` | test(scope): message |
32
24
| ` git localize <message> ` | localize: message |
33
25
| ` git localize <scope> <message> ` | localize(scope): message |
26
+
27
+
28
+ ## Manual Installation:
29
+
30
+ 1 . Clone this repo, prefferably in your $HOME directory.
31
+ ```
32
+ git clone https://github.com/russiann/git-semantic-commits ~/.git-semantic-commits
33
+ ```
34
+
35
+ 2 . Add the folder to your $PATH.
36
+ * if using Bash, open ``` ~/.bashrc ``` with your favourite editor and add this line:
37
+ ```
38
+ export PATH=$PATH:$HOME/.git-semantic-commits:$PATH
39
+ ```
40
+ * if using Zsh, open ``` ~/.zshrc ``` with your favourite editor and add this line:
41
+ ```
42
+ export PATH=$PATH:$HOME/.git-semantic-commits:$PATH
43
+ ```
44
+
45
+ 3 . Save the file and source the changes in bashrc/zshrc: ``` source ~/.bashrc ``` or ``` source ~/.zshrc ```
46
+
47
+ 4 . Done!
Original file line number Diff line number Diff line change
1
+ # !/bin/bash
2
+ export PATH=$PATH :$HOME /.git-semantic-commits:$PATH
3
+ bashrc=$HOME " /.bashrc"
4
+ zshrc=$HOME " /.zshrc"
5
+
6
+ packageDir=$( pwd)
7
+
8
+ if [ -f " $bashrc " ]
9
+ then
10
+ echo " Installing on Bash"
11
+ dir=" export PATH=$PATH :$HOME /.git-semantic-commits:$PATH "
12
+
13
+ echo " " >> $zshrc
14
+ echo " #git-semantic-commits (delete this lines to 'uninstall' commands)" >> $bashrc
15
+ echo $dir >> $bashrc
16
+ else
17
+ echo " "
18
+ fi
19
+
20
+ if [ -f " $zshrc " ]
21
+ then
22
+ echo " Installing on ZSH"
23
+ dir=" export PATH=$PATH :$packageDir :$PATH "
24
+
25
+ echo " " >> $zshrc
26
+ echo " #git-semantic-commits (delete this lines to 'uninstall' commands)" >> $zshrc
27
+ echo $dir >> $zshrc
28
+ else
29
+ echo " "
30
+ fi
31
+ echo " -------------------------------------------------"
32
+
33
+ echo " ╔═╗╦╔╦╗ ╔═╗╔═╗╔╦╗╔═╗╔╗╔╔╦╗╦╔═╗ ╔═╗╔═╗╔╦╗╔╦╗╦╔╦╗
34
+ ║ ╦║ ║ ╚═╗║╣ ║║║╠═╣║║║ ║ ║║ ║ ║ ║║║║║║║║ ║
35
+ ╚═╝╩ ╩ ╚═╝╚═╝╩ ╩╩ ╩╝╚╝ ╩ ╩╚═╝ ╚═╝╚═╝╩ ╩╩ ╩╩ ╩ "
36
+
37
+ echo " "
38
+ echo " Installation complete!"
39
+ echo " "
40
+ echo " Follow the instructions below:"
41
+ echo " "
42
+ echo " For Bash run: source ~/.bashrc"
43
+ echo " For ZSH run: source ~/.zshrc"
44
+ echo " "
45
+ echo " Or restart your terminal!"
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " git-semantic-commits" ,
3
+ "version" : " 1.0.1" ,
4
+ "description" : " Semantic Commits Msg for GIT" ,
5
+ "main" : " index.js" ,
6
+ "scripts" : {
7
+ "postinstall" : " ./install.sh" ,
8
+ "preuninstall" : " ./uninstall.sh"
9
+ },
10
+ "repository" : {
11
+ "type" : " git" ,
12
+ "url" : " git+https://github.com/russiann/git-semantic-commits.git"
13
+ },
14
+ "keywords" : [
15
+ " git" ,
16
+ " commit" ,
17
+ " semantic" ,
18
+ " karma" ,
19
+ " message" ,
20
+ " commits" ,
21
+ " convention" ,
22
+ " pattern"
23
+ ],
24
+ "author" : " Russian Rebouças" ,
25
+ "license" : " MIT" ,
26
+ "bugs" : {
27
+ "url" : " https://github.com/russiann/git-semantic-commits/issues"
28
+ },
29
+ "homepage" : " https://github.com/russiann/git-semantic-commits#readme"
30
+ }
Original file line number Diff line number Diff line change
1
+ # !/bin/bash
2
+ echo " -------------------------------------------------"
3
+
4
+ echo " ╔═╗╦╔╦╗ ╔═╗╔═╗╔╦╗╔═╗╔╗╔╔╦╗╦╔═╗ ╔═╗╔═╗╔╦╗╔╦╗╦╔╦╗
5
+ ║ ╦║ ║ ╚═╗║╣ ║║║╠═╣║║║ ║ ║║ ║ ║ ║║║║║║║║ ║
6
+ ╚═╝╩ ╩ ╚═╝╚═╝╩ ╩╩ ╩╝╚╝ ╩ ╩╚═╝ ╚═╝╚═╝╩ ╩╩ ╩╩ ╩ "
7
+
8
+ echo " "
9
+ echo " Uninstall guide"
10
+ echo " "
11
+ echo " Follow the instructions below:"
12
+ echo " "
13
+ echo " Open ~/.bashrc or ~/.zshrc, search '#git-semantic-commits' and delete the two lines found"
14
+ echo " After that, restart your terminal!"
15
+ echo " "
You can’t perform that action at this time.
0 commit comments