Git Tutorial 1: How to use git? | Learn Basic Git commands | by OsChannel

Publicado el: 13 enero 2022
en el canal de: OsChannel
186
10

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 ]


En esta página del sitio puede ver el video en línea Git Tutorial 1: How to use git? | Learn Basic Git commands | by OsChannel de Duración hora minuto segunda en buena calidad , que subió el usuario OsChannel 13 enero 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 186 veces y le gustó 10 a los espectadores. Disfruta viendo!