Skip to content

Creating a private fork

martinpllu edited this page Jul 20, 2020 · 2 revisions

(Adapted from this article)

Create a new private project on GitHub then run the following:

git clone --bare https://github.com/stackplanet/sourcestack
cd sourcestack.git
git push --mirror https://github.com/yourname/private-repo.git
cd ..
rm -rf sourcestack.git

Now clone your private project and work on it as normal:

git clone https://github.com/yourname/private-repo.git
cd private-repo
<make some changes>
git commit
git push origin master

To pull changes from sourcestack:

cd private-repo
git remote add sourcestack https://github.com/stackplanet/sourcestack
git pull sourcestack master 
git push origin master
Clone this wiki locally