User Tools

Site Tools


tips:linux:clonelocalgit
no way to compare when less than two revisions

Differences

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


tips:linux:clonelocalgit [2012/03/28 18:40] (current) – created erik
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 18:40 by erik