Skip to content

Setting your Local Repository

williamfgc edited this page May 4, 2017 · 1 revision
  • Prerequisites:
    1. GitHub account
    2. Local git installation
  1. Fork the main repository on GitHub:

    1. Navigate to https://github.com/ornladios/adios2 in your browser.
    2. Click the [Fork] button in the upper right-hand side of the page.
  2. Clone the upstream repository to your local machine:

    $ mkdir adios
    $ cd adios
    $ git clone https://github.com/ornladios/adios2.git source
    Cloning into 'source'...
    remote: Counting objects: 4632, done.
    remote: Compressing objects: 100% (80/80), done.
    remote: Total 4632 (delta 33), reused 0 (delta 0), pack-reused 4549
    Receiving objects: 100% (4632/4632), 1.23 MiB | 224.00 KiB/s, done.
    Resolving deltas: 100% (2738/2738), done.
    Checking connectivity... done.
    $
  3. Run the scripts/development/setup.sh script. The script will configure an upstream remote and link your local master branch to the upstream.

    $ cd source/
    $ ./scripts/developer/setup.sh 
    Enter your GitHub username: chuckatkins
    Setup SSH push access? [(y)/n] y
    Re-configuring local master branch to use upstream
    Fetching origin
    remote: Counting objects: 6, done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
    Unpacking objects: 100% (6/6), done.
    From https://github.com/chuckatkins/adios2
    Fetching upstream
    From https://github.com/ornladios/adios2
    * [new branch]      <strong>master     -> upstream/master</strong>
    * [new branch]      dashboard  -> upstream/dashboard
    * [new branch]      hooks      -> upstream/hooks
    Setting up git aliases...
    Setting up git hooks...
    $