A python implementation of 'git up'
Project description
PyGitUp is a Python implementation of the great aanand/git-up/. Right now it fully covers the abilities of git-up and should be a drop-in replacement.
Why using git up?
git pull has two problems: * It merges upstream changes by default, when it’s really more polite to rebase over them, unless your collaborators enjoy a commit graph that looks like bedhead. * It only updates the branch you’re currently on, which means git push will shout at you for being behind on branches you don’t particularly care about right now.
Why using the Python port?
I wasn’t able to use the original git-up, because I didn’t want to install a whole Ruby suite just for git-up and even with Ruby installed, there were some problems running on my Windows machine. So, my reasons for writing and using this port are:
Windows support.
Written in Python ;)
Is it stable?
Yes, it should be stable now. If you nevertheless find errors, please report them here.
How do I install it?
Run $ pip install git-up
cd to your project’s directory.
Run git up enjoy!
Note for Windows users:
You need pip installed and working. Check out SO#4750806 for more information. And don’t forget to either make your Python/Scripts and Python/Lib/site-packages writable for you or run pip with admin privileges.
How to configure it?
To configure PyGitUp, you can set options in your git config. Run git config [--global] git-up.[name] [value] to set one of these options:
git-up.bundler.check [true|*false*]: If set to true,PyGitUp will check your app for any new bundled gems and suggest a bundle install if necessary.
git-up.bundler.autoinstall [true|*false*]: If set to true,PyGitUp will run bundle install automatically. Requires git-up.bundler.check to be true.
git-up.fetch.prune [*true*|false]: If set to true, PyGitUp will append the --pruneoption to git fetch and thus removing any remote tracking branches which no longer exist on the remote (see git fetch –help).
git-up.fetch.all [true|*false*]: If set to false, PyGitUp will only fetch remotes for which there is at least one local tracking branch. Setting this option will it git up always fetch from all remotes, which is useful if e.g. you use a remote to push to your CI system but never check those branches out.
git-up.rebase.arguments [string]: If set, PyGitUp will use this string as additional arguments when calling git rebase. Example: --preserve-merges to recreate merge commits in the rebased branch.
git-up.rebase.auto [*true*|false]: If set to false, PyGitUp won’t rebase your branches for you but notify you that they diverged. This can be useful if you have a lot of in-progress work that you don’t want to deal with at once, but still want to update other branches.
git-up.rebase.log-hook [cmd]: Runs cmdevery time a branch is rebased or fast-forwarder, with the old head as $1 and the new head as $2. This can be used to view logs or diffs of incoming changes. Example: ‘echo "changes on $1:"; git log --oneline --decorate $1..$2‘
Credits
The original git-up has been written by aanand: aanand/git-up/.
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 git-up-0.1.zip
.
File metadata
- Download URL: git-up-0.1.zip
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c6659dbe5e1373a488f1e015d3065433665b8b333c4b84555d257d4e73f3672 |
|
MD5 | f9317261b6f887dfe65d6f32a88b520c |
|
BLAKE2b-256 | 52dcde87c6dd1dd2fda1740d03d4e675b21c734f711f2907b89dc99d96163b55 |
File details
Details for the file git_up-0.1-py2.7.egg
.
File metadata
- Download URL: git_up-0.1-py2.7.egg
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59847a6b449fd8cd8ce66b4168ea35a22a4af5c1486949531228ee114b3f2e22 |
|
MD5 | 75e45ce416f9df64cd369699defae17a |
|
BLAKE2b-256 | d4f0cf20a7a2a2b3306ada37c4d7f70de9024e0e3601057a752a3e2406502426 |