Skip to main content

Interactive git and more

Project description

Build Status PyPI version

Igit - Interactive Git

Igit is an interactive supplementary CLI to git for better git experience.

Main features:

  1. Fast commits - add, commit & push, instantly.
  2. Undo changes - cancel changes made to any file.
  3. Branch hopping - move between branches, even if you have unstaged changes, without having to stage them.
  4. Easy ignore - add files to ignore, sync with remote.
  5. Interactivity - select and check instead of typing.

Installation

With pip:

pip install igit

Usage

help

Fast commits

From:

# git add .
# git commit -m "commit message"
# git push 

To:

igit up "commit message" 

up

Notes:

  • If you don't specify a commit message it will default to 'fast commit'.
  • Same goes for igit save - without pushing to remote.

Undo changes

# To undo changes in an unstaged changed file:
igit undo file_1.py 
# To pick a file just drop the file's name:
igit undo

undo

Notes:

  • Same goes for igit unstage with respect to added files.

Branch hopping

# To change branches:
igit branch
# To change branches with unstaged changes:
igit branch --hopping_on 

branch

Notes:

  • When in hopping mode all change are stored to the git stash. You can use git stash list to see stashed changes and git stash pop to retrieve stashed changes

Branch hopping

# To add files to .gitignore:
igit ignore
# To create a .gitignore:
igit ignore --create  

ignore

Notes:

  • In case your local .gitignore is not in sync with your remote .gitignore you can use:
# Reset .gitignore:
igit ignore --reset 

And then push to remote - your current .gitignore will take effect.

Compatibility

igit is cross-platform → Windows, macOS, Linux

🤓 windows users will get best experience with windows terminal - powershell session.

Built with

  • click
  • gitpython
  • inquirer
  • emoji

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

Local dev environment (macOS / Linux)

  • Clone this project
  • cd into project directory
  • Run: pipenv install
  • Run: pipenv --venv
  • Add bash alias:
alias igit='PYTHONPATH=<LOCAL GITSY PROJECT DIR> <PIPENV VENV PATH>/bin/python3 <LOCAL IGIT PROJECT DIR>/igit/cli.py'
  • Now you can run igit from bash and code changes in local igit dir will apply.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igit-2020.10.25.post2.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

igit-2020.10.25.post2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file igit-2020.10.25.post2.tar.gz.

File metadata

  • Download URL: igit-2020.10.25.post2.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for igit-2020.10.25.post2.tar.gz
Algorithm Hash digest
SHA256 a86e365d4757bdec5531eae520cd2c0c9da666199e5772822da0f1a0acf5d6f0
MD5 af36ef35c23ae20fe16f29438398e90c
BLAKE2b-256 9be1f98ecaeceb3547da400f0524f4880a802889a5229649704a5d2a455b46d7

See more details on using hashes here.

File details

Details for the file igit-2020.10.25.post2-py3-none-any.whl.

File metadata

  • Download URL: igit-2020.10.25.post2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for igit-2020.10.25.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7bc1015428a3ce203a424a6712467a51ec8541c0b909439fd56846baea78dc8
MD5 25eed450b3ea66467d64e895ae765ad5
BLAKE2b-256 4cf26d41d37f25b9a06c78f0e7cf00c6458abc5bafcd889f4ac1c9405b3d67e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page