legit是一个对于git的python封装,提供简单而“供人类使用的”git接口
branches
Get a nice pretty list of available branches.sync []
Synchronizes the given branch. Defaults to current branch. Stash, Fetch, Auto-Merge/Rebase, Push, and Unstash. You can only sync published branches. (alias: sy)resync
Stashes unstaged changes, Fetches, Auto-Merge/Rebase upstream data from specified upstream branch, Performs smart pull+merge for current branch, Pushes local commits up, and Unstashes changes. Default upstream branch is ‘master’. (alias: rs)switch
Switches to specified branch. Defaults to current branch. Automatically stashes and unstashes any changes. (alias: sw)sprout []
Creates a new branch off of the specified branch. Swiches to it immediately. (alias: sp)harvest []
Auto-Merge/Rebase of specified branch changes into the second branch. (alias: ha, hv, har)graft
Auto-Merge/Rebase of specified branch into the second branch. Immediately removes specified branch. You can only graft unpublished branches. (alias: gr)publish []
Publishes specified branch to the remote. (alias: pub)unpublish
Removes specified branch from the remote. (alias: unp)install
Installs legit git aliases.help
Displays help for legit command. (alias: h)