A lazy developer's Git CLI made simple. Makes using git on cloud IDEs (i.e. C9) a walk in the park.
$ 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 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 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