
Get started with Git basics for GitLab projects, including creating repositories, committing changes, managing branches, and handling remote repositories, pushing and pulling, merge requests, and conflict resolution.
Check if Git is installed by typing git --version in a terminal; if not, download the latest Windows installer from git-scm.com, install with defaults, and use git --version to verify.
learn how to install git on linux mint using the terminal, verify the installation with git --version, and complete the setup.
Check the macOS terminal for git by running git --version. Install git via Xcode or use homebrew with brew install git for an easy setup.
Open a terminal and run git --version to verify your git installation. If absent, install git using the video description, and on Windows use Git Bash to follow along.
Create a git repository in your project folder with git init, then use git status to inspect state and the hidden .git folder and the master or main branch.
Configure git globally by setting user.name and user.email to identify who makes each change in collaborative GitLab projects.
Create your first git commit by adding a file, staging it in the staging area with git add, then committing a message on the master branch.
Discover how git staging works by adding files, using git add and git status, and creating selective commits for readme.md and index.html in a GitLab project.
Learn how to manage staged changes by using git status and git reset HEAD to unstage files like readme.md, keep index.html staged, and craft clear commit messages.
Explore how git log reveals the history of commits, showing when and by whom changes occurred and which files were updated. Use --patch to view diffs.
Git tracks files, not folders; to keep an empty folder, add a .gitkeep file and commit it as 'added temp folder'.
Delete untracked files with rm, since they are not yet part of git locally. Stage the deletion for tracked files with git add, commit, and use git log.
Discover how the .gitignore file excludes files and folders, such as a private config folder, preventing untracked files from appearing in git status or being committed.
Learn to create a feature branch from main or master with git checkout -b, name it like feature/new-table, and switch back with git checkout while tracking changes.
Learn how to merge a feature branch into master using git merge, including fast forward merges and safe deletion of branches after merging.
Create a git bugfix branch, edit files, and commit changes to illustrate a non-fast-forward merge. Use the recursive strategy to merge diverged branches into a merge commit.
Learn how rebasing your feature branch onto master creates a clean history and enables fast-forward merges by replaying commits on top of master.
Practice resolving git merge conflicts by inspecting with git status, choosing between current and incoming changes, aborting with git merge --abort if needed, and finalizing with git add and commit.
Learn to work with remote repositories in GitLab, exchanging and merging changes between local and remote projects, and push to a new GitLab repository with SSH keys.
Generate a public and private RSA key with ssh keygen on Windows, store in the default .ssh folder, and add the public key to GitLab settings to enable SSH authentication.
Push your local changes to the remote repository with git push, targeting origin and the master branch, then verify the update for others to access.
Explore the GitLab web interface to view commits, diffs, and collaboration features; create branches, add or edit files, and use the Web IDE to manage versions.
Demonstrate committing changes through the GitLab web interface by editing index.html, creating a new table cell, and submitting a commit via the web IDE, highlighting staging and committing concepts.
Learn to synchronize your local repository with the remote by pulling changes from origin master. See how git pull fetches updates and merges them into the local master.
Learn how to resolve remote merge conflicts when pushing to a shared repository by pulling, merging, and rebasing to align local and remote changes.
Learn to maintain a clean project history by rebasing when pulling changes with git pull --rebase against origin master, avoiding merge commits and resolving conflicts during commits.
Learn how cloning creates an exact local copy of a remote git repository using git clone over ssh instead of https, enabling you to recover lost work and continue projects.
Learn to create feature branches, push to origin, and open merge requests in GitLab to review changes, run CI tests, and merge into master with optional squashing and rebasing.
Gain practical experience with git and GitLab CI through command-line practice, including resolving conflicts. Learn to clone, branch, merge, submit and review merge requests within GitLab.
This course is neither endorsed by, nor in partnership, nor affiliated with GitLab, Inc.
GitLab is transforming the way teams collaborate to get work done. One central component of GitLab is the possibility of hosting Git repositories.
To take full advantage of GitLab, you need to know the basics of Git.
For many beginners, working with Git can be scary. I can reassure you that once you understand the main concepts around Git, collaborating it others will be easy.
What is Git?
Git is a versioning control system that allows you to keep track of changes to files and also share changes with others. A bit like Dropbox but much more advanced.
What will I learn if I take this class?
If you take this class, you will be able to work with others on shared Git repositories with no issues.
In this course we class we cover:
the basics around Git
how to commit changes
how to share changes with others on GitLab
how do handle merge requests
What is the difference between GitHub and GitLab?
Great question. Both are online services that offer Git hosting and collaboration tools. While Github is very popular for open source projects, GitLab is mostly adopted by organizations for private repositories.
What are the requirements for taking this class?
No previous knowledge is required. I am around to help if you get stuck.
Do I need programming skills?
While Git is often used by software developers, you don't need any programming skills to learn Git.
Do I need to install any software?
Yes, you need to be able to install Git on your computer.
Does it cost anything?
Git is open source and free to download. You will find more instructions in the course notes.
If you don't already have a GitLab account, you can create one for free at GitLab(.)com
See you in class!
Legal Disclaimer
This course is an independent educational resource and is not endorsed by, affiliated with, or associated with GitLab Inc. or any of its products or services. GitLab and the GitLab logo are trademarks of GitLab Inc. All product names, logos, and brands mentioned in this course are the property of their respective owners.
This course contains promotional materials.