A lazy developer's Git CLI made simple. Makes using git on cloud IDEs (i.e. C9) a walk in the park.
npm install ogitA lazy developer's Git CLI made simple. Makes using git on cloud IDEs (i.e. C9) a walk in the park.




``sh-session`
$ npm install -g ogit
$ ogit COMMAND
running command...
$ ogit (-v|--version|version)
ogit/1.31.1 darwin-x64 node-v12.22.12
$ ogit --help [COMMAND]
USAGE
$ ogit COMMAND
...
* ogit amend-last-commit
* [ogit autocomplete [SHELL]](#ogit-autocomplete-shell)ogit checkout-repo URL
* ogit clear-stash
* ogit clone-repo
* ogit commit-changes
* ogit create-branch
* ogit create-git-flow
* ogit create-tag
* ogit delete-branch
* ogit delete-last-commit
* ogit delete-stash
* ogit delete-tag
* ogit display-branches
* ogit display-changes
* ogit generate-ssh-keys
* ogit help [COMMAND]
* [](#ogit-help-command)ogit merge-remote-branches
* ogit pull-remote-changes
* ogit push-commits
* ogit push-tag
* ogit rename-branch
* ogit reset-head
* ogit revert-changes
* ogit revert-last-commit
* ogit setup-git-flow
* ogit stash-changes
* ogit switch-branch
* ogit unstash-changes
*
Amends the last commit to repo
``
USAGE
$ ogit amend-last-commit
_See code: src/commands/amend-last-commit.ts_
display autocomplete installation instructions
`
USAGE
$ ogit autocomplete [SHELL]
ARGUMENTS
SHELL shell type
OPTIONS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
EXAMPLES
$ ogit autocomplete
$ ogit autocomplete bash
$ ogit autocomplete zsh
$ ogit autocomplete --refresh-cache
`
_See code: @oclif/plugin-autocomplete_
Checkout a git repo into current directory
`
USAGE
$ ogit checkout-repo URL
ARGUMENTS
URL URL of git repository
`
_See code: src/commands/checkout-repo.ts_
Clears all the stashes in the local repos
``
USAGE
$ ogit clear-stash
_See code: src/commands/clear-stash.ts_
Clones a remote repo
`
USAGE
$ ogit clone-repo
OPTIONS
-l, --list List branches and tags
-s, --search Search through branches and tags
`
_See code: src/commands/clone-repo.ts_
Commit all the uncommitted changes to repo
`
USAGE
$ ogit commit-changes
OPTIONS
--noSummary Do not display commit summary
`
_See code: src/commands/commit-changes.ts_
Creates a new local branch from a remote branch
`
USAGE
$ ogit create-branch
OPTIONS
-s, --search
`
_See code: src/commands/create-branch.ts_
Starts GitFlow branching model workflow
`
USAGE
$ ogit create-git-flow
OPTIONS
-t, --type=type type of branching
`
_See code: src/commands/create-git-flow.ts_
Tags the current repository. Does annotated tagging only
``
USAGE
$ ogit create-tag
_See code: src/commands/create-tag.ts_
Deletes a branch from the repo
``
USAGE
$ ogit delete-branch
_See code: src/commands/delete-branch.ts_
Deletes the last commit to repo, changes are removed from the file system
``
USAGE
$ ogit delete-last-commit
_See code: src/commands/delete-last-commit.ts_
Deletes a list of stashes in the repo
``
USAGE
$ ogit delete-stash
_See code: src/commands/delete-stash.ts_
Deletes a tag from local and remote repo
``
USAGE
$ ogit delete-tag
_See code: src/commands/delete-tag.ts_
Lists the branches within the current repo
``
USAGE
$ ogit display-branches
_See code: src/commands/display-branches.ts_
Display all the uncommitted changes
`
USAGE
$ ogit display-changes
ALIASES
$ ogit status
`
_See code: src/commands/display-changes.ts_
Generates SSH key pairs to authenticate the user. For Windows OS, requires git bash to be pre-installed and run as administrator for this command
``
USAGE
$ ogit generate-ssh-keys
_See code: src/commands/generate-ssh-keys.ts_
display help for ogit
`
USAGE
$ ogit help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
`
_See code: @oclif/plugin-help_
Merges two remote branches
`
USAGE
$ ogit merge-remote-branches
OPTIONS
-s, --search
`
_See code: src/commands/merge-remote-branches.ts_
Pull remote changes from a branch and merge
`
USAGE
$ ogit pull-remote-changes
OPTIONS
-s, --search
-t, --trackingOnly
`
_See code: src/commands/pull-remote-changes.ts_
Pushes local commits to the remote repo
``
USAGE
$ ogit push-commits
_See code: src/commands/push-commits.ts_
Pushes local tag(s) to origin
`
USAGE
$ ogit push-tag
OPTIONS
-a, --all=all all the local tags
`
_See code: src/commands/push-tag.ts_
Renames a local branch to a new one
`
USAGE
$ ogit rename-branch
OPTIONS
-s, --search
`
_See code: src/commands/rename-branch.ts_
Resets the current HEAD to a branch or tag
``
USAGE
$ ogit reset-head
_See code: src/commands/reset-head.ts_
Reverts an uncommitted change
``
USAGE
$ ogit revert-changes
_See code: src/commands/revert-changes.ts_
Reverts the last commit to repo, changes are left on the file system
``
USAGE
$ ogit revert-last-commit
_See code: src/commands/revert-last-commit.ts_
Sets up GitFlow branching model workflow
`
USAGE
$ ogit setup-git-flow
OPTIONS
-f, --feature=feature name of the feature branch
-g, --global=global setup flow config globally
-h, --hotfix=hotfix name of the hotfix branch
-n, --next=next name of the next release branch
-p, --production=production name of the production release branch
-r, --release=release name of the release branch
-t, --tag=tag version tag prefix
`
_See code: src/commands/setup-git-flow.ts_
Stashes the changes in the workspace
``
USAGE
$ ogit stash-changes
_See code: src/commands/stash-changes.ts_
Switches the current branch to another local branch
``
USAGE
$ ogit switch-branch
_See code: src/commands/switch-branch.ts_
Applies the stashed changes back into workspace
```
USAGE
$ ogit unstash-changes
_See code: src/commands/unstash-changes.ts_