We welcome any kind of contributions to our software, from simple comment or question to a full pull request. Please read and follow our contributing guidelines.
Note when we want to work with STEMMUS_SCOPE
repository on a new computer for
the first time, we need to configure a few things following steps 1 to 4 below.
It is strongly recommended using two-factor authentication. Here is the link of Configuring two-factor authentication.
With SSH keys, you can connect to GitHub without supplying your username and personal access token at each visit. Please follow the instructions below. If you like to know more, see Connecting to GitHub with SSH
Open a terminal and run the command below:
ls -la ~/.ssh
This command lists the files with extension .pub
like id_rsa.pub
in the
.ssh
directory, if they exist. If you receive an error that ~/.ssh
doesn't
exist, or you don't see any files with extension .pub
, you do not have an
existing SSH key pair. So, continue with step 2.2. Otherwise, skip step 2.2 and
continue with step 2.3.
Open a terminal and run the command below but replace your_user_email
with
your own GitHub email address:
ssh-keygen -t ed25519 -C "your_user_email"
When you're prompted to "Enter a file in which to save the key," press Enter
.
This accepts the default file location.
The next prompt asks "Enter passphrase (empty for no passphrase)", type a secure passphrase. For more information, see Working with SSH key passphrases.
Open a terminal and run the command below:
eval "$(ssh-agent -s)"
Then, run the command below:
ssh-add ~/.ssh/id_ed25519
This asks for your "passphrase" that was provided in the previous step.
Please follow steps 1 to 8 in this GitHub instruction.
Open a terminal, and run the commands below one by one but replace
your_user_name
and your_user_email
with your own GitHub information:
git config --global user.name "your_user_name"
git config --global user.email "your_user_email"
Change the way Git encodes line endings on Linux as:
git config --global core.autocrlf input
We can set nano
as our favorite text editor, following:
git config --global core.editor "nano -w"
We use
nano
here because it is one of the least complex text editors. Pressctrl + O
to save the file, and thenctrl + X
to exitnano
.
You can check your settings at any time:
git config --list
For more information, see lesson Setting Up Git.
Open a terminal and run the command below:
cd
Now you are in your HOME
directory. Run the command below:
git clone [email protected]:EcoExtreML/STEMMUS_SCOPE.git
Now a new GitHub folder STEMMUS_SCOPE
is created in your HOME
directory.
In this command, we clone the repository using
ssh
option. As we set the ssh connection in Step 2, this command here does not ask for our user name and password.
To know about the most common Git commands, follow the guides here.