Skip to content

shakilsiraj/ogit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8e261a · Jul 13, 2023
Sep 17, 2019
Jan 30, 2019
Nov 15, 2018
Nov 28, 2018
Jul 13, 2023
Nov 21, 2018
Nov 12, 2018
Dec 16, 2018
Jan 22, 2019
Nov 22, 2018
Jul 13, 2023
Jan 17, 2019
Nov 14, 2018
Dec 17, 2018
Nov 23, 2018
Jul 13, 2023
Jul 13, 2023
Jan 30, 2019
Nov 23, 2018
Sep 16, 2019

Repository files navigation

ogit

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

oclif Version Downloads/week License

Usage

$ 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
...

Commands

ogit amend-last-commit

Amends the last commit to repo

USAGE
  $ ogit amend-last-commit

See code: src/commands/amend-last-commit.ts

ogit autocomplete [SHELL]

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

ogit checkout-repo URL

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

ogit clear-stash

Clears all the stashes in the local repos

USAGE
  $ ogit clear-stash

See code: src/commands/clear-stash.ts

ogit clone-repo

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

ogit commit-changes

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

ogit create-branch

Creates a new local branch from a remote branch

USAGE
  $ ogit create-branch

OPTIONS
  -s, --search

See code: src/commands/create-branch.ts

ogit create-git-flow

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

ogit create-tag

Tags the current repository. Does annotated tagging only

USAGE
  $ ogit create-tag

See code: src/commands/create-tag.ts

ogit delete-branch

Deletes a branch from the repo

USAGE
  $ ogit delete-branch

See code: src/commands/delete-branch.ts

ogit delete-last-commit

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

ogit delete-stash

Deletes a list of stashes in the repo

USAGE
  $ ogit delete-stash

See code: src/commands/delete-stash.ts

ogit delete-tag

Deletes a tag from local and remote repo

USAGE
  $ ogit delete-tag

See code: src/commands/delete-tag.ts

ogit display-branches

Lists the branches within the current repo

USAGE
  $ ogit display-branches

See code: src/commands/display-branches.ts

ogit display-changes

Display all the uncommitted changes

USAGE
  $ ogit display-changes

ALIASES
  $ ogit status

See code: src/commands/display-changes.ts

ogit generate-ssh-keys

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

ogit help [COMMAND]

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

ogit merge-remote-branches

Merges two remote branches

USAGE
  $ ogit merge-remote-branches

OPTIONS
  -s, --search

See code: src/commands/merge-remote-branches.ts

ogit pull-remote-changes

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

ogit push-commits

Pushes local commits to the remote repo

USAGE
  $ ogit push-commits

See code: src/commands/push-commits.ts

ogit push-tag

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

ogit rename-branch

Renames a local branch to a new one

USAGE
  $ ogit rename-branch

OPTIONS
  -s, --search

See code: src/commands/rename-branch.ts

ogit reset-head

Resets the current HEAD to a branch or tag

USAGE
  $ ogit reset-head

See code: src/commands/reset-head.ts

ogit revert-changes

Reverts an uncommitted change

USAGE
  $ ogit revert-changes

See code: src/commands/revert-changes.ts

ogit revert-last-commit

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

ogit setup-git-flow

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

ogit stash-changes

Stashes the changes in the workspace

USAGE
  $ ogit stash-changes

See code: src/commands/stash-changes.ts

ogit switch-branch

Switches the current branch to another local branch

USAGE
  $ ogit switch-branch

See code: src/commands/switch-branch.ts

ogit unstash-changes

Applies the stashed changes back into workspace

USAGE
  $ ogit unstash-changes

See code: src/commands/unstash-changes.ts