-
Change the GitHub Username in the
gitSync.sh
-
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
)
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.