Learn Git and GitHub Tutorial | Step by Step

preview_player
Показать описание
In this video, I'll cover step-by-step how you can use git for version control for any of your development projects. I'll demonstrate how to push and pull code from a GitHub repository, collaborate with other developers, make pull requests, and resolve merge conflicts.

Learn hands-on full stack development with my flagship Udemy course:

Git is an important part of most modern software development. Learning to use git from the terminal is an essential part of your toolbox as a professional developer!

If you have any questions, please leave them in the comments below!

If you enjoy videos about software engineering, machine learning, and DevOps, please subscribe to the channel!

▬▬▬▬▬▬ 👋 Get in Touch! 👋 ▬▬▬▬▬▬

▬▬▬▬▬▬ ⏰ T I M E S T A M P S ⏰ ▬▬▬▬▬▬

0:00 - Intro
2:07 - Installation (Windows and macOS)
3:30 - git config (set up name and email)
4:50 - git init (create a local git repo)
7:22 - git status (check changes)
7:50 - git add -A (add all changes to staging)
8:22 - git commit -m (snapshot changes)
10:22 - git diff (see the diff of changes)
11:00 - git log (see all commits)
14:05 - create a GitHub repository
17:08 - git remote add origin and git push -u origin master (add the remote and push and track to master branch)
17:52 - git remote -v (see the remote urls)
18:00 - direction for setting up ssh with GitHub
20:00 - git clone (downloads a repository from a remote)
21:50 - two developer example workflow starts
25:20 - git pull (pull changes from remote for current local branch tracking remote)
25:29 - resolving a merge conflict
27:45 - git checkout -b (create a new branch)
29:56 - git branch (see local branches)
30:12 - git fetch (downloads commits, refs, files from remote to see the new branch)
30:28 - git checkout some-branch (switch to the branch with name some-branch)
32:16 - merging branches using GitHub pull requests
34:30 - git merge (join commit histories back together)
Рекомендации по теме
Комментарии
Автор

0:00 - Intro
2:07 - Installation (Windows and macOS)
3:30 - git config (set up name and email)
4:50 - git init (create a local git repo)
7:22 - git status (check changes)
7:50 - git add -A (add all changes to staging)
8:22 - git commit -m (snapshot changes)
10:22 - git diff (see the diff of changes)
11:00 - git log (see all commits)
14:05 - create a GitHub repository
17:08 - git remote add origin and git push -u origin master (add the remote and push and track to master branch)
17:52 - git remote -v (see the remote urls)
18:00 - direction for setting up ssh with GitHub
20:00 - git clone (downloads a repository from a remote)
21:50 - two developer example workflow starts
25:20 - git pull (pull changes from remote for current local branch tracking remote)
25:29 - resolving a merge conflict
27:45 - git checkout -b (create a new branch)
29:56 - git branch (see local branches)
30:12 - git fetch (downloads commits, refs, files from remote to see the new branch)
30:28 - git checkout <some-branch> (switch to the branch with name <some-branch>)
32:16 - merging branches using GitHub pull requests
34:30 - git merge (join commit histories back together)

WesDoyle
Автор

This video was really useful - it explains the branch merging, pull request nicely. Thanks.

rajendrashrowty
Автор

Awesome tutorial, perfectly explained. Also, your particular voice is very soothing and helps me calm and concentrate

sebastianmaher
Автор

Hello Wes

I have been struggling a couple of days to find a tutorial which covers file management on github and I must say this video tutorial is excellent, covering all the essential topics which a beginner must know

priyasengar
Автор

Wes keep up with great work, you deliver great content i will go through all your tutorials !

joj
Автор

great stuff! how do l set up my cursor like yours to display which branch l'm on?

macwillson
Автор

Great tutorial Wes! Keep up with this great work!

MauroSebastian
Автор

THANK YOU, Wes!!! That's exactly what i asked for! :)

edge-of-the-world
Автор

Awesome. You always amaze me, . What would be also nice to see is Electron with Blazor. There is an awesome library Electron Net that lets you run electron with Blazor. Your explanations are always clear and simple. Reminds me of this great quote "If you can't explain it simply, you don't understand it well enough. -Albert Einstein". Keep up the good work.

munawarkhurshid
Автор

Best git hub tutorial that I found on YouTube I switched from different crash courses and got the best video on your channel thanks sir! and love from India :)

anuj
Автор

really good video, fast and well explained

benel
Автор

what command line are you using because it shows you your in the master already

derilmbarika
Автор

A quick suggestion, please make your volume a little higher, its quite difficult to hear your voice at a low sound level. I have to turn the volume to over 90 % to just hear you barely! Otherwise, this is a perfect video!

hemanthkotagiri
Автор

11:15 "This long sort of string here is the git hash. All you need to understand here is that it is a unique identifier...."
Why not describe the hash as like taking a fingerprint of your file. It is a large number generated from the CONTENTS of the file. Just like your fingerprint, the hash (a SHA hash) is completely unique to that file's CONTENTS. Make a change to the file, generate another SHA, and that new SHA will be very different from the one you generated previously. Git uses the SHA to distinguish each file version from other versions of the same file. In fact when you commit a file, git (effectively) changes its filename (in the repo) to the SHA. (When you get the file out of the repo, git restores the original filename in your working directory, i.e. the directory that you use when working on your project.) Identifying files by their SHA enables git to quickly compare files to see if they have the same (identical) contents. (Generating a SHA from a file is a relatively quick process, and is easily done often inside the git program.)

ricksevans
Автор

Thank you for the wonderful tutorial! :)

Importunity
Автор

Great video, Can you explain what is difference between squashing and merging PR?

SimplifiedTechTamil
Автор

You explained really well. Thanks for this wonderful tutorial.👍

neemapranay
Автор

Nice work wess
Really good and informative video for beginners
And you covered almost all day to day commands we use in git 👍

gamervidigna
Автор

I really like this basic tutorial
you even explained the whys and hows and thank you for that

Himanshu
Автор

Thank you, your videos are very helpful

aymansyria
welcome to shbcf.ru