Bitcoin Forum
November 21, 2017, 10:13:15 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
   Home   Help Search Donate Login Register  
Pages: [1]
Author Topic: HOWTO: create git mirror of SVN repo  (Read 2455 times)
Offline Offline

Activity: 1470

View Profile
July 31, 2010, 11:01:19 PM

It seems like a lot of people out there are using git to follow the bitcoin SVN repo, and some are having trouble with line endings.

Here is the method of creating a local git repository, containing nothing but satoshi's upstream SVN commits:
$ git svn clone --stdlayout

When satoshi updates his SVN, here is the method for updating your local repository:
$ git svn fetch && git pull . refs/remotes/trunk

It is advisable to maintain a vanilla repository or branch, and do your work in a separate repo, such as
$ git clone bitcoin bitcoin.jg-hacks

or create a side branch,
$ cd bitcoin
$ git checkout -b jg-hacks master

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Pages: [1]
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!