gitnow
Simple and fast commands for your git workflow.
🐠 +
gitnow is a Fish alternative inspired by git-friendly.
Install
With fisherman
fisher joseluisq/gitnow
Note: Fish 2.2.0 doesn't include native snippet support. Upgrade to Fish >= 2.3.0 or append the gitnow.fish
to your ~/.config/fish/config.fish
file.
CLI
Command | Description |
---|---|
commit | Equivalent to git add -A ; git commit [your arguments...] . |
pull | Equivalent to git stash ; git pull --rebase [your arguments...] (--rebase option is used only if repository was not rebased yet). |
push | Equivalent to git push --set-upstream [your arguments...] . |
upstream | Equivalent to commit ; push commands. (-S is optional for GPG-sign commits) |
gh | Equivalent to git clone for Github repositories. |
pull
, push
and commit
support git arguments.
Tip:
💡 Skip the password request creating a SSH key for your Github or Bitbucket account.
commit
commit
adds all files git add .
and then it performs git commit
.
Examples:
commit
commit -S
commit . -m "my awesome commit"
pull
pull
saves your local changes with git stash
and then it performs git pull --rebase
.
Examples:
pull
pull my_origin my_branch
pull my_origin --tags
push
push
contains --set-upstream
option by default.
Examples:
push
push my_origin my_branch
push my_origin --tags
upstream
Equivalent to commit ; push
commands. Very useful for send your changes quickly.
Examples:
upstream
upstream -S
gh
git clone
shortcut for Github repositories.
Examples:
gh username/repo
gh username repo
gh repo
: It's necessary to set your Github username (globaly). For this works, type:git config --global user.github "your-github-username"
Note: You need a SSH key for your Github account.
Contributions
Pull requests and issues are welcome.
License
MIT license
© 2016 José Luis Quintana