Skip to content

svscorp/tweakgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tweakgit.py

Tweakgit is a small Python3 script which makes your work with git in Debian/Ubuntu linux more visible and colourful

  • Adds useful git aliases to your .gitconfig
  • Enables color prompt for your bash (modifies .bashrc)
  • Displays current git branch name in command prompt (modifies .bashrc)
  • Enables git diff color output

This script uses tips written in LeaseWebLabs blog.

Requirements

  • Recent Debian-based Linux (Debian/Ubuntu/Mint/etc)
  • Python3 installed (sudo apt-get install python3)
  • No external dependencies

Installation

To run tweakgit and improve your Git experience you must run

  • Clone this repo into your home folder using: git clone
  • Execute the tweakgit script using: python3 tweakgit.py

NB: The script will execute the following sudo command:

  • sudo apt-get install colordiff

Disclaimer

This code will update the following files

  • ~/.bashrc
  • ~/.gitconfig

Before you run the script make sure you make a backup of the above files to avoid any data loss.

About

Tweak your work with Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages