GitGui

Introduciton:

A python GUI based application/package, that lets you push a file to your github easily, without any difficulties. If you are too lazy to add and commit through command prompt, then this app/package is for you.

FUN FACT - All the files in this repo is pushed using this app/package only :)

Installation:

You really dont need to install it, you can just download the git_gui.py and init.py source code, get them in a directory and you are good to go. This way, you can change the program as you like it

But if you really want to install then go through the following:

1.Install it on the go with pip install.

NOTE : FOR THE NOOB I AM, REMEMBER TO USE A VIRTUALENV WHILE INSTALLING THE CODE :)

     sudo pip install GitGui

and that does the trick for you.

But before using pip to install this package, little bit of tweaking is needed. You have to configure your pip.conf file. You should find your pip.conf file here: /home/.pip/pip.conf, however if it is not present, dont panic just make a file namely pip.conf and put the codes within as showed. Let me show from begining.

      /$ cd .pip
      /.pip$ vim pip.conf

Then write the following within pip.conf

      [global]
      index-url = https://testpypi.python.org/pypi/

This points, the pip to look for the package in test server as this package is being hosted on the test-server testpypi and not the actual server, where all the core packages are present. Hope this helps :)

  1. If python-setuptools is pre-installed, you can also use easy_install command

        easy_install GitGui
    

How to use:

  1. Just import the package GitGui
  2. And invoke the function gitall().

     import gutgui
     gitgui.gitall()
    
  3. Save the program as *.py and execute.

Utilities:

  1. Being a GUI based application, now its easier to push files to your Github repos. Consider this for a moment, through standard process, in order to push a file to your github repo, you need to first initialize git in your current directory, then add a file, then commit it with some message, then you need to configure remote and then you can push it to your remote, thats not all then you have to enter username and password. A long tiring process indeed, therefore a GUI based app that reduces your effort. Just add your file, using filebrowser, enter your commit message and repo and you are done.
  2. No need for username and password authentication, as github auth token does this job in background for you.
  3. If you have by-mistaken entered the incorrect repo name, i.e. if repo is not present, the app lists all the repos you have and lets you try again.
  4. Also if you try to push a file, that is already there in your repo, it will print an error message and aborts the program
  5. Make the program *.py executable using chmod, make a shortcut of this program to your desktop(so that you dont forget to push) and start pushing all the codes, that you have written and not pushed.

Clone

Feel free to clone and play arond the code to make it better

  git clone https://github.com/Rahul91/GitGui

Issues:

  1. The code is very 'brute' in nature and design, help it to be more pythonic and asthetic.
  2. Only one file can be pushed at a time, which should not be the case ideally.
  3. Find a issue and mail me: priyrahulmishra@gmail.com