6 ms·
How to backup your code on git: cd ~/.ssh ssh-keygen -t rsa -C "yourname@example.com" vi ~/.ssh/id_rsa.pub #copy this into a new key https://github.com/sett
by vtempest 12y ago
How to backup your code on git:
cd ~/.ssh
ssh-keygen -t rsa -C "yourname@example.com"
vi ~/.ssh/id_rsa.pub
#copy this into a new key https://github.com/settings/ssh https://github.com/settings/ssh
#now create a new git repo https://github.com/new https://github.com/new
cd /var/www
sudo apt-get install git
git init
git add *
git commit -a -m "init"
git remote add origin git@github.com:yourname/repo.com.git
git push -u origin master