User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

tips:linux:clonelocalgit [2012/03/28 11:40] (current)
erik created
Line 1: Line 1:
 +====== How to clone a local git repository to a remote server? ======
 +On the remote server:
 +  mkdir newproject
 +  cd newproject
 +  git init --bare
 +On the local machine:
 +  git remote add origin ssh://​[email protected]/​path/​to/​repo/​newproject
 +  git push --all origin
tips/linux/clonelocalgit.txt · Last modified: 2012/03/28 11:40 by erik