User Tools

Site Tools


git:git_cheatsheet

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
git:git_cheatsheet [2015/04/10 10:43] – [Delete branch] devagit:git_cheatsheet [2017/02/21 20:20] (current) deva
Line 141: Line 141:
 </code> </code>
 NOTE: If this is done by the usual 'git push' command, a 'No refs in common and none specified; doing nothing.' error will be issued. NOTE: If this is done by the usual 'git push' command, a 'No refs in common and none specified; doing nothing.' error will be issued.
 +
 +=====Set up repository mirror=====
 +From: https://help.github.com/articles/duplicating-a-repository/
 +<code>
 +# Create a bare clone of the repository.
 +git clone --bare https://github.com/exampleuser/old-repository.git
 +
 +# Mirror-push to the new repository.
 +cd old-repository.git
 +git push --mirror https://github.com/exampleuser/new-repository.git
 +</code>
  
 =====Move single directory to its own repository===== =====Move single directory to its own repository=====
git/git_cheatsheet.1428655384.txt.gz · Last modified: 2015/04/10 10:43 by deva