An open API service indexing awesome lists of open source software.

https://github.com/sanderhelleso/cit

🔥 Quick git for branch control and speed
https://github.com/sanderhelleso/cit

Last synced: 4 months ago
JSON representation

🔥 Quick git for branch control and speed

Awesome Lists containing this project

README

        

CIT


Automatically add branch to commit message | add, commit and push in one command | quick git.

cit b "npm install me" -n




version




CIT is tiny and easy to use. It aims to increase the git flow where structured commits and branches are required.


## ❯ Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install @sanderhelleso/cit -g
```


## ❯ Usage

### Commit

Commit to current branch with branch name prefixed to commit message


Commit
```sh
$ cit c "message"
```

Commit and add
```sh
$ cit c "message" -a
```

Commit, add and push
```sh
$ cit c "message" -a -p "branch"
```


### Checkout branch

Checkout to provided branch or create a new branch


Checkout existing branch
```sh
$ cit b "name"
```

Checkout new branch
```sh
$ cit b "name" -n
```


### Add all changes to current branch

Add all new git changes in current directory to current branch


```sh
$ cit a
```


### Push all commits to branch

Pushes all commits to specified branch from the current branch


```sh
$ cit p "name"
```


### Show current branch

Shows the current git branch of the current git project


```sh
$ cit l
```


## ❯ LICENCE
MIT