Code Monkey home page Code Monkey logo

automate-git-process's Introduction

Git Automate

GitHub repo size GitHub contributors GitHub stars GitHub forks Twitter Follow

Git Automate is a bash script that allows developer to do automate certain git processes.

When a new project is created using command <create project_name> it does couple of things

  • Creates a directory for a project and navigates to that directory
  • Creates a README.md file similar to this (For this add the provided SAMPLE_README.md file to your FILEPATH)
  • Creates a remote repository in github with same project name
  • Initailises git in the project directory
  • Creates new connection to remote repository
  • Performs git add, git commit and push to master

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Define your Git USERNAME and PASSWORD in .env file of your system
  • Also, generate a GITOAUTHTOKEN (Click here for OAuth tokens) and define GITOAUTHTOKEN in an .env file in your system

Using the script

To execute the script, follow these steps:

# Add execute attribute to the script
> chmod +x automate_git.sh
> create <Name of repository> <Bool: Private repo?> (True for private; False for public)
# Example
> create test_repo true

Also, have a look at these variables used in the script:

# var 1 ($1): Name of the repo
# Var 2 ($2): private or public repo
# USERNAME: define git username in .env file of your system
# PASSWORD: define git password in .env file of your system
# GITOAUTHTOKEN: define git O Auth token of .env file in your system
# FILEPATH: Path to your project directory

Contributors

You might want to consider using something like the All Contributors specification and its emoji key.

Contact

If you want to contact me you can reach me at [email protected].

automate-git-process's People

Contributors

sumanrajsharma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.