▶ Git, GitHub, and GitHub Actions for Beginners:
https://www.youtube.com/watch?v=iUWa0cGHZms&list=PLUHnYREC5ofgYs0KwYpSNQpdk4S10R4J-
In this lesson, you will learn how to install Git, set up your author name and email, create your first repository, and make your first commit. I also explain the difference between the working directory, the staging area, and the commit, and show why the .gitignore file is important from the very beginning. This is the basic Git workflow that every beginner should understand before moving to GitHub and more advanced topics.
00: 00 Introduction
00: 46 Installing Git
02: 20 Setting up user.name and user.email
04: 10 What a repository is
05: 08 git init — creating my first repository
06: 42 Working directory, staging area, and commit in simple words
08: 50 git status
10: 00 git add
11: 42 git commit
13: 30 What the .gitignore file is and why you need it from the start
16: 14 Summary and what will be in the next lesson
Commands used in this lesson:
sudo apt install git -y — installs Git
git –version — shows the installed Git version
git config –global user.name “Alex” — sets the global Git author name
git config –global user.email “alex@mymail.com” — sets the global Git author email
git config –global –list — shows global Git settings
git init — initializes a new Git repository
git status — shows the current repository state
git add app.txt — adds one file to the staging area
git add . — adds all current changes to the staging area
git commit -m “Initial commit” — creates a commit with a message
#Git #GitHub #DevOps