Skip to content

afroeschl/gitSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Simplify syncing sgit with GitHub

Setup

  1. Change the GitHub Username in the gitSync.sh

  2. Set environmental variable containing a GitHub token with necessary privileges

export GITHUB_TOKEN="YOUR TOKEN"

(You could export the token to an environmental variable at startup via any startup script eg. via .bashrc)

Usage

Clone the sgit repo, cd into and run the script

git clone SGIT_REPO
cd SGIT_REPO
sudo -E bash /path/to/gitSync/gitSync.sh

Instead of setting the enviromental variable for the GitHub token, you can set it within the command: sudo GITHUB_TOKEN="YOUR TOKEN" bash /path/to/gitSync/gitSync.sh

Now the git remote is on both platforms.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages