Skip to content

Github_automation is a command-line interface (CLI) project, that utilises a PowerShell script, that I wrote, to automate the process of pushing an existing project to GitHub, or to automate creating a new project (in your projects directory) and its respective GitHub Repository on your GitHub.

License

Notifications You must be signed in to change notification settings

AranMesquita/Github_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Github automation using PowerShell

github_automation.ps1 is a PowerShell script to automate the process of pushing an existing project to your Github or to automate creating a new project (in your projects directory) and its respective Github repo, on your Github.

Prerequisites:

Make sure that Git and Github cli is installed and that you have authenticated Git to GitHub cli before using github_automation.ps1 commands.

Install Git:

Install Github cli:

Run this command authenticate Git to GitHub:

PS C:\Users\User>gh auth login

Installation:

PS C:\Users\User>gh repo clone AranMesquita/Github_automation
PS C:\Users\User>. .\Github_automation\github_automation.ps1

If the installation is not working visit:

Usage examples:

Existing Project:

PS C:\Users\User> github_automation existing-project "C:\Users\User\desktop\Projects\github_automation_folder" "github_automation"

New Project:

PS C:\Users\User> github_automation new-project "C:\Users\User\desktop\Projects" "github_automation"

Extra info:

🧑‍💻I have also uploaded the github_automation.ps1 code snippet to my gists.

About

Github_automation is a command-line interface (CLI) project, that utilises a PowerShell script, that I wrote, to automate the process of pushing an existing project to GitHub, or to automate creating a new project (in your projects directory) and its respective GitHub Repository on your GitHub.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published