Github does not provide free private git repos. So I use gitlab to host my own git server, and when I decide to go public, I switch to Github, or use Github as a second remote.
Here’s how you can add a second remote to your existing git repo.
Typically the existing remote is labelled as ‘origin’. In the example below, you’ll be adding a new remote labelled ‘github’.
As a first step, got to Github and create a new git repo. Get the github url (the [email protected] url, not the https one, since the latter asks for a password while pushing)
At the bash prompt, cd to the directory of your existing remote
cd /path/to/gitrepo git remote add github [email protected]:droidzone/wordpress_plugin_updater.git git push github master
To change a remote:
git remote set-url github [email protected]:droidzone/wordpress_plugin_updater.git
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.