Skip to content

Commit 49b4952

Browse files
authored
Merge pull request #1 from sbimochan/readme
Add readme
2 parents 89e9446 + 13c2ccf commit 49b4952

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Smart commit
2+
Create commit with current branch name
3+
4+
For example:
5+
If your current branch name is ```EF-803```
6+
7+
```gcommit "New feature"```
8+
9+
will produce command
10+
11+
```git commit -m "EF-803: New feature"``` and execute it
12+
13+
If your current branch is ```dev or uat or qa or master```
14+
15+
```gcommit "New feature"```
16+
17+
will produce default command
18+
19+
```git commit -m "New feature"``` and execute it
20+
21+
### Installation
22+
```cd ~```
23+
24+
```git clone https://github.com/sbimochan/smart-commit.git```
25+
26+
```alias gcommit="sh ~/bin/smart-commit/commit"```
27+
28+
And restart the terminal

0 commit comments

Comments
 (0)