
Git and GitHub for Beginners - Crash Course
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
BrennanKill
I'm having a very challenging issue at the -create a local dir then connect it to a remote Github dir- step of this video. My github account was created pre-2020 so I believe I'm having issues with branches. Basically; when I created the demo-repo2 local directory everything was working fine until I got to the 'git push -u origin main' step. I was getting an error basically saying main was undefined or something along those lines. I tried using 'git push -u origin master' and it successfully pushed it according to CLI. If I check git status it shows no changes available.
HOWEVER - When I go to that repository on github it still shows as an empty repository; the changes are not appearing to push there. I ran 'git branch' from the demo-repo2 folder on my local vscode client and it shows 'master' as the branch. When I do the same from the 'demo-repo' dir I created earlier in the video it shows 'main' as the branch... so I've managed to end up with a main and master branch, and I don't know how to correct this issue. Any help would be appreciated. Thanks
reply
I'm having a very challenging issue at the -create a local dir then connect it to a remote Github dir- step of this video. My github account was created pre-2020 so I believe I'm having issues with branches. Basically; when I created the demo-repo2 local directory everything was working fine until I got to the 'git push -u origin main' step. I was getting an error basically saying main was undefined or something along those lines. I tried using 'git push -u origin master' and it successfully pushed it according to CLI. If I check git status it shows no changes available.
HOWEVER - When I go to that repository on github it still shows as an empty repository; the changes are not appearing to push there. I ran 'git branch' from the demo-repo2 folder on my local vscode client and it shows 'master' as the branch. When I do the same from the 'demo-repo' dir I created earlier in the video it shows 'main' as the branch... so I've managed to end up with a main and master branch, and I don't know how to correct this issue. Any help would be appreciated. Thanks
reply
GTFreeFlyer
I finally understand Git after this video. I-ve asked so many questions to friends and watched several -quick- YouTube tutorials and was still confused about Git. Your tutorial was excellent and I-m glad I sat through the whole hour of it. It was completely worth my time. Thanks!
reply
I finally understand Git after this video. I-ve asked so many questions to friends and watched several -quick- YouTube tutorials and was still confused about Git. Your tutorial was excellent and I-m glad I sat through the whole hour of it. It was completely worth my time. Thanks!
reply
mufaro
Thank you Gwen for the course. I knew nothing about git but now I know alot, I had been procrastinating learning it but your course broke the chains of procrastination. Now I'm going to put into practice all I learnt. I'm truly grateful.
reply
Thank you Gwen for the course. I knew nothing about git but now I know alot, I had been procrastinating learning it but your course broke the chains of procrastination. Now I'm going to put into practice all I learnt. I'm truly grateful.
reply
Understand
This tutorial isn't good for absolute beginners specially those who are using windows. I ran into lot of errors by exactly following her steps and she tell about generating ssh keys later in the course but they were required earlier.
reply
This tutorial isn't good for absolute beginners specially those who are using windows. I ran into lot of errors by exactly following her steps and she tell about generating ssh keys later in the course but they were required earlier.
reply
Phuong
I found out that another way of creating git branch is to use -checkout name-of-that-branch-, like the --b- is removed. Does anyone here no the difference between these 2 ways ? Do they lead to huge difference later on?
reply
I found out that another way of creating git branch is to use -checkout name-of-that-branch-, like the --b- is removed. Does anyone here no the difference between these 2 ways ? Do they lead to huge difference later on?
reply
himanshu
Hey gwen,
I really can't get the hidden repo like .git in my terminal using ls -la nor ls -a nor la
Also while pushing my file to the github , the file is shown empty
So please help me out with this one
reply
Hey gwen,
I really can't get the hidden repo like .git in my terminal using ls -la nor ls -a nor la
Also while pushing my file to the github , the file is shown empty
So please help me out with this one
reply
Sik
if u are a beginner using VS Code on Windows, find a course dedicated to the two platforms or vs code on windows, some important commands wont work for you
reply
if u are a beginner using VS Code on Windows, find a course dedicated to the two platforms or vs code on windows, some important commands wont work for you
reply
Markus
Hi Gwen. Thanks for this intro into Git and GitHub. - I used it as a refresher and now I am ready to dig in deeper. Have a good time and be well.
reply
Hi Gwen. Thanks for this intro into Git and GitHub. - I used it as a refresher and now I am ready to dig in deeper. Have a good time and be well.
reply
Muhammad
Very Amazingly explained and those infographics were really helpful.
Thank you -freeCodecCamp and Thank you so much Gwen Faraday.
reply
Very Amazingly explained and those infographics were really helpful.
Thank you -freeCodecCamp and Thank you so much Gwen Faraday.
reply
Diver
This was the best github tutorial video I have ever seen , your explanations were to the point and easy to understand. Thanks Gwen
reply
This was the best github tutorial video I have ever seen , your explanations were to the point and easy to understand. Thanks Gwen
reply
Add a review, comment
Other channel videos















