Skip to content

Commit f568f4e

Browse files
authored
Cleanup
1 parent c091d4b commit f568f4e

1 file changed

Lines changed: 22 additions & 15 deletions

File tree

README.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
## Smart commit
2-
Create commit with current branch name
1+
# Smart Commit
32

4-
For example:
5-
If your current branch name is ```EF-803```
3+
Create a commit prefixed with current branch name.
64

7-
```commit "New feature"```
5+
## Installation
86

9-
will produce command
7+
Run this command on terminal.
108

11-
```git commit -m "EF-803: New feature"``` and execute it
9+
```shell
10+
curl https://raw.githubusercontent.com/sbimochan/smart-commit/master/commit -o /usr/local/bin/commit && chmod +x /usr/local/bin/commit
11+
```
1212

13-
If your current branch is ```dev or uat or qa or master```
13+
## Usage
1414

15-
```commit "New feature"```
15+
* If your current branch name is `EF-803`
16+
17+
```shell
18+
$ commit "New feature"
19+
```
1620

17-
will produce default command
21+
will translate to
1822

19-
```git commit -m "New feature"``` and execute it
23+
```shell
24+
$ git commit -m "EF-803: New feature"
25+
```
2026

21-
### Installation
22-
Run this command on terminal
27+
* If your current branch is either of `dev`, `uat`, `qa`, `staging` or `master`
28+
29+
```commit "New feature"```
2330

24-
```curl https://raw.githubusercontent.com/sbimochan/smart-commit/master/commit -o /usr/local/bin/commit && chmod +x /usr/local/bin/commit```
31+
will execute without prefixing the branch name.
2532

26-
And restart the terminal
33+
`git commit -m "New feature"`

0 commit comments

Comments
 (0)