| ... | @@ -46,16 +46,17 @@ Git will open a text editor when running certain commands such as `git merge` or |
... | @@ -46,16 +46,17 @@ Git will open a text editor when running certain commands such as `git merge` or |
|
|
export EDITOR=XXXX
|
|
export EDITOR=XXXX
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
where `XXXX` is the name of the editor. It could be `nano`, `emacs`, or any other user-friendly text editor available on Linux. You can install nano, or emacs with the a command similar to:
|
|
where `XXXX` is the name of the editor. It could be `nano`, `emacs`, or any other user-friendly text editor available on Linux. You can install nano, or emacs with commands similar to:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
sudo apt install nano
|
|
sudo apt install nano
|
|
|
|
echo 'export EDITOR=nano' >> ~/.bashrc
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
If you work on **Windows**, git is not provided by Microsoft with the OS. You must install it before the next steps (see next section).
|
|
|
|
|
|
|
|
|
|
### 🪟 Windows
|
|
### 🪟 Windows
|
|
|
|
|
|
|
|
|
If you work on **Windows**, git is not provided by Microsoft with the OS. You must install it before the next steps.
|
|
|
|
|
|
|
Download the latest version of git from the website: https://git-scm.com/
|
|
Download the latest version of git from the website: https://git-scm.com/
|
|
|
|
|
|
|
|
Double-click on the installer, then follow the instructions. Choose the default options except for the default editor which is configured for "vim" (an old type of editor which is rather difficult to use).
|
|
Double-click on the installer, then follow the instructions. Choose the default options except for the default editor which is configured for "vim" (an old type of editor which is rather difficult to use).
|
| ... | @@ -64,7 +65,7 @@ Double-click on the installer, then follow the instructions. Choose the default |
... | @@ -64,7 +65,7 @@ Double-click on the installer, then follow the instructions. Choose the default |
|
|
|
|
|
|
|
Choose one editor that you know well instead of vim (e.g. NotePad or [NotePad++](https://notepad-plus-plus.org/) on Windows).
|
|
Choose one editor that you know well instead of vim (e.g. NotePad or [NotePad++](https://notepad-plus-plus.org/) on Windows).
|
|
|
|
|
|
|
|
# ⚙️ Configure git
|
|
# ⚙️ Configure git (any OS)
|
|
|
|
|
|
|
|
On Windows, you can use "git" by right-clicking on a folder in the windows explorer and by running "Git Bash Here". Git is also available in any command-line window (Run "cmd", then type `git` in the terminal).
|
|
On Windows, you can use "git" by right-clicking on a folder in the windows explorer and by running "Git Bash Here". Git is also available in any command-line window (Run "cmd", then type `git` in the terminal).
|
|
|
|
|
|
| ... | @@ -79,7 +80,7 @@ git config --global user.email "your_email@student.uliege.be" |
... | @@ -79,7 +80,7 @@ git config --global user.email "your_email@student.uliege.be" |
|
|
|
|
|
|
|
Git must know your name and e-mail address. All your personal work will be identified on GitLab with these 2 strings.
|
|
Git must know your name and e-mail address. All your personal work will be identified on GitLab with these 2 strings.
|
|
|
|
|
|
|
|
This configuration step should be done once per computer, the first time you use git.
|
|
This configuration step should be done **once per computer**, the first time you use git.
|
|
|
|
|
|
|
|
# 🔑 Configure SSH keys
|
|
# 🔑 Configure SSH keys
|
|
|
|
|
|
| ... | @@ -157,7 +158,7 @@ Welcome to GitLab, @Your_name! |
... | @@ -157,7 +158,7 @@ Welcome to GitLab, @Your_name! |
|
|
|
|
|
|
|
If you do not get the welcome message "Welcome to GitLab\`, something went wrong in the previous steps. Read again the instructions.
|
|
If you do not get the welcome message "Welcome to GitLab\`, something went wrong in the previous steps. Read again the instructions.
|
|
|
|
|
|
|
|
The official procedure from the GitLab documentation can be found [here](https://gitlab.uliege.be/help/user/ssh.md#generate-an-ssh-key-pair).
|
|
If you encounter any problem with these commands, the latest official procedure from the GitLab documentation can be found [here].(https://gitlab.uliege.be/help/user/ssh.md#generate-an-ssh-key-pair).
|
|
|
|
|
|
|
|
|
|
|
|
|
# ⏬ Clone the repository
|
|
# ⏬ Clone the repository
|
| ... | |
... | |
| ... | | ... | |