| ... | ... | @@ -13,7 +13,7 @@ sudo apt install git |
|
|
|
Git will open a text editor when running certain commands such as "git merge" or "git commit". The default editor is [vim](https://www.vim.org/) which is rather difficult to use. If you don't plan to use vim, set the environment variable `EDITOR` to the name of your editor by adding the following line at the end of your `~/.bashrc` file:
|
|
|
|
```
|
|
|
|
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:
|
|
|
|
```
|
| ... | ... | @@ -60,7 +60,7 @@ On GitLab, go to the [Settings](https://gitlab.uliege.be/profile) of your accoun |
|
|
|
Then choose "SSH keys" on the menu on the left.
|
|
|
|
|
|
|
|
Follow the [procedure](https://gitlab.uliege.be/help/ssh/README#generating-a-new-ssh-key-pair) to create a SSH-key pair (in a "git-bash" terminal on Windows, or a terminal on the other platforms).
|
|
|
|
|
|
|
|
|
|
|
|
Use the RSA type, which is more compatible with older machines.
|
|
|
|
```
|
|
|
|
$ ssh-keygen -o -t rsa -b 4096 -C "demo"
|
| ... | ... | @@ -126,9 +126,14 @@ There are numerous tutorials on git on the web: |
|
|
|
- [Atlassian tutorial](https://www.atlassian.com/fr/git/tutorials)
|
|
|
|
- ...
|
|
|
|
|
|
|
|
There are also several e-books, which can be legally downloaded from [ULiège's library](https://lib.uliege.be) or the internet (e.g. [Pro Git](https://git-scm.com/book/fr/v2)).
|
|
|
|
There are also several e-books, which can be legally downloaded from [ULiège's library](https://lib.uliege.be) (use VPN) or the internet (e.g. [Pro Git](https://git-scm.com/book/fr/v2)).
|
|
|
|
|
|
|
|
You may also have a look at this presentation [Git (in French)](http://metafor.ltas.ulg.ac.be/dokuwiki/_media/devel/git_v20.pdf).
|
|
|
|
|
|
|
|
If you prefer youtube videos, here are some links about git and GitLab:
|
|
|
|
|
|
|
|
* [Git for GitLab (Beginner's FULL COURSE)](https://www.youtube.com/watch?v=4lxvVj7wlZw&ab_channel=ValentinDespa)
|
|
|
|
* [Learn GitLab in 3 Hours | GitLab Complete Tutorial For Beginners](https://www.youtube.com/watch?v=8aV5AxJrHDg&ab_channel=LambdaTest)
|
|
|
|
|
|
|
|
|
|
|
|
I have created a powerpoint presentation for teaching git to my colleagues/students. You may download the current (unfinished) version with the link below:
|
|
|
|
* [Git powerpoint (in French)](http://metafor.ltas.ulg.ac.be/dokuwiki/_media/devel/git_v20.pdf)
|
|
|
|
|
|
|
|
Unlike the links above, this presentation focuses on the tools used at the University of Liège (this GitLab) and on the Windows operating system (because most of my colleagues/students use Windows). I also start the presentation by the local usage of git before using GitLab, so that branches and cleaning operations are well understood before going online. The git features of Visual Studio Code are also presented. |