Git for Humans.
Project description
Inspired by GitHub for Mac.
The Concept
GitHub for Mac is not just a Git client.
This comment on Hacker News says it best:
They haven’t re-created the git CLI tool in a GUI, they’ve created something different. They’ve created a tool that makes Git more accessible. Little things like auto-stashing when you switch branches will confuse git veterans, but it will make Git much easier to grok for newcomers because of the assumptions it makes about your Git workflow.
Why not bring this innovation back to the command line?
The Interface
- branches
Get a nice pretty list of available branches.
- sync [<branch>]
Syncronizes the given branch. Defaults to current branch. Stash, Fetch, Auto-Merge/Rebase, Push, and Unstash. You can only sync published branches.
- switch <branch>
Switches to specified branch. Defaults to current branch. Automatically stashes and unstashes any changes.
- sprout [<branch>] <new-branch>
Creates a new branch off of the specified branch. Swiches to it immediately.
- harvest [<branch>] <into-branch>
Auto-Merge/Rebase of specified branch changes into the second branch.
- graft <branch> <into-branch>
Auto-Merge/Rebase of specified branch into the second branch. Immediately removes specified branch. You can only graft unpublished branches.
- publish <branch>
Publishes specified branch to the remote.
- unpublish <branch>
Removes specified branch from the remote.
- install
Installs legit git aliases.
The Installation
From PyPI with the Python package manager:
pip install legit
Or to install the cutting edge version:
pip install git+https://github.com/kennethreitz/legit.git@develop
You’ll then have the wonderful legit command available. Run it within a repository.
To install the git aliases, run the following command:
legit install
Caveats
All remote operations are carried out by the remote identified in $ git config legit.remote remotename
If a stash pop merge fails, Legit stops. I’d like to add checking for a failed merge, and undo the command with friendly error reporting.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file legit-0.2.0.zip
.
File metadata
- Download URL: legit-0.2.0.zip
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2a008d4ee026d82690edfc970028c5fdb8db29abb0fc5e7d62755103061735 |
|
MD5 | 5df3cd402b0de8f0251a87904b5eb88c |
|
BLAKE2b-256 | 12abbf1c04a8c19cfec300d0e875e41db9029415c5653c0032ea33e4a068f3a4 |
Provenance
File details
Details for the file legit-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: legit-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 140743d326b6bd00f83a26d931e22ae9a3a2ec337b3a392c17ee9844e928becb |
|
MD5 | 23a22ea2ae61c304f2df40e6f5e09e90 |
|
BLAKE2b-256 | 2652723927ef61b0624029837f257d85b169cfc83dcdb93baefc7933761ca728 |