Changes between Version 1 and Version 2 of Building/GettingTheSources/Legacy


Ignore:
Timestamp:
Jun 6, 2015 8:53:21 PM (5 years ago)
Author:
thomie
Comment:

Local clones

Legend:

Unmodified
Added
Removed
Modified
  • Building/GettingTheSources/Legacy

    v1 v2  
    5353}}}
    5454
     55== Making a local clone ==
     56
     57You can make a local clone of a GHC tree with
     58
     59{{{
     60 $ git clone ~/ghc ~/ghc-branch
     61}}}
     62
     63where `~/ghc` is the repository you want to branch and `~/ghc-branch` is where you want to put the branch. Then use `sync-all` (see [wiki:/Building/SyncAll]) to clone the rest of the repositories.  Note that the `origin` for the local clone will point back to the repository that it was cloned from - if you want `origin` to point back to the main GHC repo then do this:
     64
     65{{{
     66  $ ./sync-all -r git://git.haskell.org remote set-url origin
     67}}}
     68
    5569
    5670== Tracking the full repository state (pre-March 2014, e.g., the 7.8.* branches) ==