Giter Site home page Giter Site logo

asadukashif / github-bash-scripting Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6 KB

This is a bash script that with a simple command sets up your project folder, creates a GitHub repo for it, creates a README.md and does the initial commit. Then it opens that folder in your favorite text editor.

Python 17.28% Shell 82.72%

github-bash-scripting's Introduction

Bash and Python Project

Project Template Generator

Usage:

create <Project Name> [-optional -m <Message> -v <Visibility Public> -p <Project Path>]

If the project path is incorrect then current working directory will be chosen

Overview:

This command allows you to create a project folder in any given directory on your Linux/Mac machine. Alongside making a directory it does the following.

  • It initializes your porject folder as a git repository git init.
  • It creates a Github Repository with the same name as your Project Name with the inital message being your optional message and visibility as provided by the user.
  • It creates a README.md file and does the inital commit for your project on Github.
  • Opens your favorite text editor for you. (Currently set to VSCode but can be changed from script.sh)

Installation:

  1. Download the files place them both in the ~ directory
  2. Go into the your shell's rc default config file (Usally its .bashrc).
  3. Add source ./script.sh at the end of the config file.
  4. Add an environment variable called github_token in the same shell config file. (export $github_token="<Your Github Token>")
  5. Install Python3
  6. Setup an SSH Key for your github account so that you can remotely pull and push code to your repositories. Chances are it'll already be configured if you've been using github through terminal.
  7. In case of skipping of any step may result in Error and breaking of program

Resources for Installation:

Specifics:

  1. This project incorporates both Python and Bash Scripting
  2. This code is completely open source. I've tried my best to comment the code so anyone making modifications can feel at home.

Contact:

github-bash-scripting's People

Stargazers

Asadullah Kashif avatar

Watchers

Asadullah Kashif 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.