How to Simplify Git & GitHub?

AutoGit

Git and Github confuse Beginners and they always ask “How to simplify git and GitHub processes ?”. The answer is AutoGit is a GUI Application built using Python Script (Tkinter). AutoGit is built to simplify git and GitHub processes and save time.

Earlier what we had to do?

1. Change Directory on your computer, where you want to create the project.

cd C:\Users\{USER}\Documents

mkdir {PROJECT NAME}

cd {PROJECT NAME}

2. Go to GitHub, Create Repository

3. Initialize Git

git init

touch README.md

git add .

git commit -m "{Your Message}"

git remote add origin https://github.com/{user}/{repo}.git

git push origin branch-name

How to Simplify Git & GitHub Using AutoGit?

AutoGit
AutoGit Source | Divyanshu Shekhar

AutoGit helps you create remote projects in your local machine and also links the project with your GitHub account. It Simplifies the work of linking the project to the Github Repository by automating the whole process.

What AutoGit uses?

Tkinter (Python GUI)

Creating a GUI application using Tkinter is an easy task. All you need to do is perform the following steps −

  • Import the Tkinter module.
  • Create the GUI application’s main window.
  • Add one or more of the above-mentioned widgets to the GUI application.
  • Enter the main event loop to take action against each event triggered by the user.

Example:

import Tkinter
top = Tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()

Selenium

Example from Autogit project:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver = webdriver.Chrome("./driver/chromedriver.exe")

Download Selenium web drivers from https://www.selenium.dev/download/. Chrome WebDriver version 80 is available in the project https://github.com/divshekhar/AutoGit.

Shell Script

The shell script is used to change the directory, where you want to create the project. After changing the directory, it initializes git inside that directory.

After initializing git in the project the shell script remotely adds the GitHub repository to the remote computer.

A README.md file is created using the touch command in git bash.

All the files in that Directory are staged and then committed with the message “Initial Commit”. The Code/Files in that Directory are pushed to GitHub Repository.

After finishing all the provided commands it opens the Visual Studio Code at the project’s Directory. Enjoy Coding now.

  
#!/usr/bin/bash

function create() {
    python ./create.py $1 $2 $3 $4
    cd $3\\$4
    git init
    git remote add origin https://github.com/$1/$4.git
    touch README.md
    git add .
    git commit -m "Initial commit"
    git push -u origin master
    code .
    read -p "Press Enter to Exit..."
}
create $1 $2 $3 $4

Requirements

AutoGit is a python script so make sure that python is installed on your system along with the needed packages installed in python.

  • Chrome (version 80)
  • Git (installed on Computer)
  • GitHub Account

Download AutoGit.exe

simplify git with autogit
Autogit.exe Source | Divyanshu Shekhar

Visit My Website.

Tags: , ,

5 Responses

  1. Rageshwar Sharma says:

    Great Work Bro, keep it up!

  2. Madhu Mishra says:

    Congrats divyanshu

  3. Shubham Ranjan says:

    Well done bro

  4. Hritul priya says:

    Well done 👌👍👍

Leave a Reply

Your email address will not be published. Required fields are marked *