Difference between revisions of "Get the MNE-CPP source code"

From MNE-CPP Wiki
Jump to: navigation, search
Line 15: Line 15:
 
#:*:# Navigate to your folder where you want to clone the repository to (Use ''cd'' to navigate to a specific path on your harddrive).
 
#:*:# Navigate to your folder where you want to clone the repository to (Use ''cd'' to navigate to a specific path on your harddrive).
 
#:*:# Type in the following command to clone the repository:
 
#:*:# Type in the following command to clone the repository:
#:*:#: <code>git clone https://github.com/mne-tools/mne-cpp.git</code>
+
#:*:#: <source lang=cpp>git clone https://github.com/mne-tools/mne-cpp.git</source>
 
# You now have the latest MNE-CPP source code on your remote and local machine.
 
# You now have the latest MNE-CPP source code on your remote and local machine.

Revision as of 17:23, 21 January 2016

This page will show you how to find the latest MNE-CPP source code, install necessary development tools and fork/copy the code to your own Git Hub account:

  1. Fork the repository from the main repository (mne-tools/mne-cpp).
    1. Go to the Git Hub website and sign into your Git Hub account.
    2. Go to the MNE-CPP's Git Hub website.
    3. Click on the upper right Fork button. This will copy the main repository to your own Git Hub account. This is the code you can now work with, without breaking the project's main code.
  2. If Git is not installed on your local machine, download Git for Windows or Mac and install it.
  3. Clone your forked (Git Hub) repository to your local machine. There are two ways to do this:
    • Option 1 (for newcomer users): Make use of a Git GUI client, such as TortoiseGit (Windows) or Git-Cola (Windows, Linux, Mac). See below for a TortoiseGit guide:
      1. Right click in the folder where you want to clone the repository to.
      2. Select Git Clone... and copy the Git Hub adress of the repository to the URL field. Hit Ok.
      3. A loading screen with a flying turtle should appear. Wait until the Close button is clickable, which indicates that the cloning process is finished.
    • Option 2 (for more experienced users): Make use of the Git commands via the command console.
      1. Open the Git command line tool (Git CMD).
      2. Navigate to your folder where you want to clone the repository to (Use cd to navigate to a specific path on your harddrive).
      3. Type in the following command to clone the repository:
        git clone https://github.com/mne-tools/mne-cpp.git
  4. You now have the latest MNE-CPP source code on your remote and local machine.