Git and Gitlab for beginners, first session⚓
Discover Gitlab⚓
- Log in on https://gitlab-df.imt-atlantique.fr
- Create a project, name it as you wish
- Choose to add a README.md file or not
- Get the clone HTTPS URL
All the necessary information is available here: Gitlab.
Discover Git⚓
The challenge here will be to familiarize yourself with the concepts of Git by using the previously created project, and to address the possibilities of documenting a project.
- Clone the Gitlab project repository

- Modify the
README.mdfile by deleting/modifying/adding lines with VScode - See what happens (with
git status) - Add these modifications to the index

- See what happens
-
Create a new commented version including these modifications

The
commitcommand adds a commit to the history of the local repository:%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchName': 'GitlabRepo'}} }%% gitGraph: commit id: "Initial" branch Alice commit id: "Modif Readme" -
See what happens
-
Propagate these modifications to the remote repository

The
pushcommand propagate the commit to the gitlab remote repository:
9. See what happens%%{init: { 'logLevel': 'debug', 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel':true,'mainBranchName': 'GitlabRepo'}} }%% gitGraph: commit id: "Initial" branch Alice commit id: "Modif Readme" checkout GitlabRepo merge Alice
All the necessary information is available here: Git.