Tig
Tig simplifies and supercharges Git workflow.
Features
- Git aliases (add + commit + push with one command, etc)
- Easy to understand errors in console with steps on how to fix
- Detects and attempts to fill in
$ sudo npm install -g tig
Setup
When you create a new repo, run:
$ tig setup
This configures the Git project in package.json
to be used in Tig commands.
---
Tig setup
---
Repo: (default package.json repo)
Local branch: (default master)
Remote branch: (default origin)
Add changed files, commit, and push
$ tig push "readme changes"
Options
Changes a variable already set during $ tig setup
Example usage: tig push -r https://github.com/afang/tig -b dev -rb dev
option | usage |
---|---|
-r |
sets the repo url |
-b |
sets the local branch |
-rb |
sets the remote branch |