A wrapper for git commands.
Makes git simpler.
- Light weight node based CLI (command line interface) app with simple readable commands.
- Executes git commands at the end to achieve desired result.
- Exhaustive help menu with sample commands
1.2.0
Check by running gite --version or gite -v.
npm install -g git-easy
Prequisites:
- node
v4+ - npm
v2+ - git
v2+
Run by executing command
gite on console.
-hHelp. Global or command specific.--show, -sShow git commands to be executed. Doesn't execute them.--version, -vShow current gite version.
branch-newCreate and switch to a new branch as a copy of current or source branch (if provided).branch-keep-copyCreate and keep aside (don't switch) a new branch as a copy of current or source branch (if provided).last-changeBETA - shows changes from last commit.change-fileChanges file to given branch/commit (tree) state. Changes fetched are unstaged.blameshows last revision details for each line with commit id, author and date of change.re-commitadd current changes (staged/unstaged) to last commit.discard-commitsdiscard all local commits on this branch, to make the local branch identical to the upstream of this branch.discard-all-changesDiscard all local changes. Changes are UNRECOVERABLE.discard-file-changesDiscard all local changes to provided file. Changes are UNRECOVERABLE.remove-commitRemoves the provided commit from current tree. WARNING: use only if commit(s) after this are not dependent on this commit.undoshelves all uncommitted changes. Stashes them.redoapplies last shelved changes. Removes from shelf.branch-copyCreate and switch to a new branch as a copy of current or source branch (if provided).change-msgchanges message of last commitrm-file-last-commitremove changes of file from last commitrm-branchremove branch from localrm-branch-remoteremove branch from provided remotesquashsquashes (combines) last 'n' commits with self generated squash messagesquash-allsquashes (combines) all unpushed commits with self generated squash messagerm-fileremove file from git. Doesn't delete itclone-prcheckouts to pull request provided to a new branch.searchsearch commit with message. Shows max 20 results.
........ more to come
run gite <command> -h to get more detailed description of that command.
Fork the repo and send PR's. Contributions are welcomed in the form of
- New commands.
- Aliases or better names for commands.
- Better description to commands.
- Test Case.