• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

legit: command not found

by Deepika

“legit” is a third-party, open-source tool for Git that provides an alternative command-line interface for performing Git operations. It aims to make working with Git easier and more intuitive for users by providing a simple and concise syntax for common Git commands. With legit, users can perform Git tasks like committing, branching, merging, and pushing with just a few keystrokes. Additionally, legit provides features like command auto-completion, built-in documentation, and error handling to further simplify the Git experience. Overall, legit is designed to complement the Git command-line interface and help users more efficiently manage their Git repositories.

If you encounter the below error while running the command legit:

legit: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install legit
Ubuntu apt-get install legit
Kali Linux apt-get install legit
OS X brew install legit
Raspbian apt-get install legit

legit Command Examples

1. Switch to a specified branch, stashing and restoring unstaged changes:

# git switch target_branch

2. Synchronize current branch, automatically merging or rebasing, and stashing and unstashing:

# git sync

3. Publish a specified branch to the remote server:

# git publish branch_name

4. Remove a branch from the remote server:

# git unpublish branch_name

5. List all branches and their publication status:

# git branches glob_pattern

6. Remove the last commit from the history:

# git undo --hard

Filed Under: Linux

Some more articles you might also be interested in …

  1. Monitor HDD and SSD with smartd and smartctl
  2. Defining System Jobs Using Cron under Linux
  3. Linux OS Service ‘irqbalance’
  4. “aws workmail” Command Examples
  5. bluetoothctl: command not found
  6. “-bash: route: command not found” on CentOS/RHEL 8
  7. btrbk: command not found
  8. chroot: Run command or interactive shell with special root directory
  9. How to find the inode size of an ext2/ext3/ext4 filesystem?
  10. How to Create a New Directory in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • csslint: A linter for CSS code
  • csh: The shell (command interpreter) with C-like syntax (Command Examples)
  • csc: The Microsoft C# Compiler (Command Examples)
  • crystal: Tool for managing Crystal source code

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright