📜 ⬆️ ⬇️

Legit: sexy git CLI

As is known from the previous Git blog post, Github has a Mac client. Kenneth Reitz decided that the Git calls available in the new “combo” interface should also be available in the console, which led him to Legit , a Python utility available, respectively, not only on the Mac.
What is interesting about him?

Unlike, for example, EasyGit , which makes Git look like svn, Legit combines some of the frequently used commands in combination (that is, it does not replace, but complements Git).

The following commands are available:

sync [<branch>]
Sync selected branch. The current branch is selected by default. Corresponds to git-calls Stash, Fetch, Auto-Merge / Rebase, Push, and Unstash.
branches
Get a list of brunch.
switch <branch>
Switch to the selected branch. Current changes go to stash and apply after switching.
sprout [<branch>] <new-branch>
Create a new brunch based on the selected one (if not set, then the current one) and switch to it.
graft <branch> <into-branch>
Drain the first brunch in the second and remove the first. You can merge only local brunch.
publish <branch>
Add a remote brunch from the corresponding local.
unpublish <branch>
Remove remote brunch.
')

Installation


Install Legit via pip (Python 2.6 or 2.7 is required):
$ pip install legit

Legit, of course, is still damp, but, as a tool, it is completely uncomplicated (all sources can be read in less than an evening), so you can safely use it.

Source: https://habr.com/ru/post/123046/


All Articles