GitHub - msiemens/PyGitUp: A nicer git pull (original) (raw)

PyGitUp is a Python port ofaanand/git-up. It not only fully covers the abilities of git-up and should be a drop-in replacement, but also extends it slightly.

Why use git up?

git pull has two problems:

(https://github.com/aanand/git-up/)

Demonstration

http://i.imgur.com/EC3pvYu.gif

Why use 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:

  1. Windows support.
  2. Written in Python ;)

How do I install it?

  1. Install git-up via pip: $ pip install git-up
  2. cd to your project's directory.
  3. Run git up and enjoy!

Homebrew users can also use brew: brew install pygitup

How to run it locally?

Could also checkout the .github/workflows/ci-workflow.yml

  1. clone repo and cd to repo directory.
  2. Install poetry as guided by poetry installation doc
  3. Run poetry install
  4. Run program with poetry run git-up
  5. Run all tests with poetry run pytest -v --cov=PyGitUp or poetry run pytest -v --cov=PyGitUp --cov-report html
  6. Run one test with poetry run pytest -q PyGitUp/tests/test_version.py -v --cov=PyGitUp

Note for Windows users:

See these instructionsfor installing pip, if you haven't already installed it. And don't forget to either:

Otherwise pip will refuse to install git-up due to Access denied errors.

Python version compatibility:

Python 3.7 and upwards are supported :)

Options and Configuration

Command Line Arguments

Configuration

To configure PyGitUp, you can set options in your git config. Rungit config [--global] git-up.[name] [value] to set one of these options:

New in v1.0.0:

Credits

The original git-up has been written by aanand:aanand/git-up/.

Changelog

v2.3.0 (2024-10-05)

v2.2.0 (2022-11-21)

v2.1.0 (2021-10-02)

v2.0.3 (2021-09-23)

v2.0.2 (2020-12-30)

v2.0.1 (2020-08-26)

v2.0.0 (2020-08-15)

v1.6.1 (2018-12-12)

v1.6.0 (2018-10-26)

v1.5.2 (2018-09-28)

v1.5.1 (2018-09-13)

v1.5.0 (2018-04-26)

v1.4.7 (2018-04-07)

v1.4.6 (2017-12-19)

v1.4.5 (2017-01-02)

v1.4.4 (2016-11-30)

v1.4.3 (2016-11-22)

v1.4.2 (2016-09-29)

v1.4.1 (2016-08-02)

v1.4.0 (2016-02-29)

v1.3.1 (2015-08-31)

v1.3.0 (2015-04-08)

v1.2.2 (2015-02-23)

v1.2.1 (2014-12-16)

v1.2.0 (2014-12-10)

v1.1.5 (2014-11-19)

v1.1.4 (2014-04-18)

v1.1.3 (2014-03-23)

v1.1.2 (2013-10-08)

v1.1.1 (2013-10-07)

v1.1.0 (2013-10-07)

v1.0.0 (2013-09-05)

Finally PyGitUp reaches 1.0.0. You can consider it stable now :)

v0.2.3 (2013-06-05)

v0.2.2 (2013-05-04)

v0.2.1 (2013-03-18)

v0.2 (2013-03-18)

v0.1 (2013-03-14)