Intro to Git and GitLab

Everardo González
20.10.2023

What to expect:

  • no theory
  • basic, everyday usage of git
  • standard tools

What is Git:

  • distributed version control system
  • free and open source
  • primary VC system for 95% of developers

What is Git:

What is GitLab:

  • code repository platform
  • DevOps platform (planning => production)
  • collaborative development platform

Git ≠ GitLab


GitLab ≈ GitHub

Let's start!

        $ git config --global user.name "Ever"
$ git config --global user.email "egonzalez@geomar.de"
    

Branches:

Branches:

Git basic commands:

        $ git add your_file.py
$ git checkout -b your_branch
$ git commit -m "A short and descriptive message about your changes"
$ git push origin main
$ git pull origin main
    

Git monitoring commands:

        $ git status
$ git diff
$ git diff HEAD~1 your_file.txt
$ git log
$ git log --oneline
$ git show
$ git show HEAD~3
    

The End

Questions? Comments?

egonzalez@geomar.de