LinuxCommandLibrary

legit

complementary command-line interface for Git that simplifies common workflows

TLDR

Switch branch with auto-stash

$ git sw [branch]
copy
Sync current branch with remote
$ git sync
copy
Publish branch to remote
$ git publish [branch]
copy
Unpublish branch from remote
$ git unpublish [branch]
copy
List all branches with status
$ git branches [pattern]
copy
Undo last commit
$ git undo --hard
copy

SYNOPSIS

git legit-command [options]

DESCRIPTION

legit is a complementary command-line interface for Git that simplifies common workflows. It adds commands for branch switching with automatic stashing, synchronization, and branch publishing.
After installation, legit commands are available as Git subcommands (e.g., `git sw`, `git sync`).

PARAMETERS

sw BRANCH

Switch to branch, stashing and restoring unstaged changes
sync
Synchronize current branch with remote (merge or rebase)
publish BRANCH
Push branch to remote server
unpublish BRANCH
Remove branch from remote server
branches [PATTERN]
List branches with publication status
undo [--hard]
Remove last commit from history

CAVEATS

Legit commands wrap standard Git operations. The `undo` command with `--hard` permanently discards changes.

SEE ALSO

git(1), git-flow(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community