Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 741 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 741 Bytes

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.