Skip to content

niraj2347/Git-Automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Project Initialization Automation

Command:

For making public repo:

  $ create.py -n <repo name>
   or
  $ create.py --name <repo name> 

For making private repo:

  $ create.py -n <repo name> -p
   or
  $ create.py --name <repo name> --private 

Git Commands we are Automating:

  $ git init
  $ touch README.md
  $ git add .
  $ git commit -m "Initial commit"
  $ git branch -M main
  $ git remote add origin <remote repo link>
  $ git push -u origin main

Setup:

git clone https://github.com/mohitkhedkar/Git-Automation.git
cd Git-Automation
pip install -r requirements.txt
touch .env 
add REPO PATH in create.py 
add USERNAME in create.py

For running command from anywhere on system:

path:
  "Git-Automation" folder directory to path

.env setup:

after running touch .env command open the .env file and paste your github token.

 GITHUB_TOKEN=" "

Getting the Github Token:

Go to Github Settings -> Developer settings -> Personal access tokens -> Generate new token -> Note: git automation

Scopes required:
  • repo
    • repo:status
    • repo_deployment
    • repo:invite
    • repo:invite
    • security events
  • workflow
  • write:packages
    • read:packages
  • delete:packages
  • admin:org
    • write:org
    • read:org

Click->Generate Token Copy the generated token and paste in .env file.


Contibutors

  1. Megha Pal.
  2. Niraj Patil.
  3. Mohit Khedkar.

About

Git Project Initialization Automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%