Link to this entire Git and Github Tutorial Playlist: • Git and Github Tutorials for Beginners
Git is the most famous Version Control System that is used by all IT professionals, be it devs or admins in the DevOps process. In today's tutorial, we will understand what is git with some examples and then learn some basic git commands. This tutorial basically introduces git to beginners and explains what git can do with the help of some examples and git commands.
Git Installation Page Links:
Mac users: https://git-scm.com/download/mac
Linux users: https://git-scm.com/download/linux
Windows users: https://git-scm.com/download/win
Link to Cheatsheet for bookmarking: https://gist.github.com/adiospeds/a03...
Once git is installed we cover the following commands in this tutorial:
To create a git repository:
git init
Configure local git settings:
git config --global user.name "username"
git config --global user.email "email"
To check repository status:
git status
Add files to the staging area:
Add specific files:
git add "filenames"
Add all files in the git repo:
git add -A
Add all files in the current directory only:
git add .
Commit changes to the git repository:
git commit
or
git commit -m "message"
List all commits:
git log
Show the commit details/changes in files:
git show "commit_hash"
Revert a commit:
git revert "commit_hash"
Show changes since the last commit:
If files are not staged use:
git diff
If files are staged use:
git diff --cached
Timeline:
00:00 Introduction
00:15 What is Git?
01:50 Install Git
02:16 Configure git
02:52 git init - Initialize a local git repo
04:18 git add - Staging in Git Repository
05:45 git commit - Our first git commit
07:20 More git commands
10:00 git revert - Revert Changes using git
12:16 Revision and what next with git
Hashtags:
#git #github #gitrepo
---
About OsChannel:
OsChannel.com is a tech channel that makes tutorial videos/vlogs about all kinds of tech and mech.
Watch more videos on Mac tricks, tips, shortcuts, and fixes:
• Mac Tricks, Tips, Shortcuts and Fixes
Watch full Python Tutorials by OsChannel.com:
• Python Tutorials
Watch all Python #Shorts by OsChannel.com:
• Python #Shorts by OsChannel
CHANNEL LINK:
/ oschanneldotcom
LINK TO MY WEBSITE:
https://oschannel.com [ Currently redirected to Youtube ]
Nesta página do site você pode assistir ao vídeo on-line Git Tutorial 1: How to use git? | Learn Basic Git commands | by OsChannel duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário OsChannel 13 Janeiro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 186 vezes e gostou 10 espectadores. Boa visualização!