Git And GitHub in ~30 Minutes
Вставка
- Опубліковано 9 кві 2021
- ⭐️ Join KodeKloud Engineer for free and upgrade your DevOps skills: bit.ly/3uywWm3
Welcome back to this Tech With Tim Git/GitHub tutorial! In this video, I'll be showing you everything you need to know about Git/GitHub to get started as a beginner, and as fast as possible. I'll talk about how Git and GitHub work, the differences between them, and what these commands actually do. This includes local repositories, tracked and untracked files, staging, branches, remote repositories, commits, and more!
📄 Resources 📄
Download Sublime Text: www.sublimetext.com/
Download Git: git-scm.com/downloads
Git/GitHub Fundamentals (For Beginners): • Git Tutorial for Begin...
⭐️ Timestamps ⭐️
02:12 | Git vs Github
03:53 | Installing Git
04:14 | Init Local Repository
07:26 | Staging Area & Git Tracking
08:23 | Git Status
10:35 | Add and Remove From Staging Area
11:41 | Commits
15:00 | Branches
20:48 | Merging Branches
22:09 | Merge Conflicts
25:17 | Remote Repositories
31:00 | Git Clone
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python: tech-with-tim.teachable.com/p...
👕 Merchandise: teespring.com/stores/tech-wit...
🔗 Social Medias 🔗
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My UA-cam Gear 🎬
🎥 Main Camera (EOS Canon 90D): amzn.to/3cY23y9
🎥 Secondary Camera (Panasonic Lumix G7): amzn.to/3fl2iEV
📹 Main Lens (EFS 24mm f/2.8): amzn.to/2Yuol5r
🕹 Tripod: amzn.to/3hpSprv
🎤 Main Microphone (Rode NT1): amzn.to/2HrZxXc
🎤 Secondary Microphone (Synco Wireless Lapel System): amzn.to/3e07Swl
🎤 Third Microphone (Rode NTG4+): amzn.to/3oi0v8Z
☀️ Lights: amzn.to/2ApeiXr
⌨ Keyboard (Daskeyboard 4Q): amzn.to/2YpN5vm
🖱 Mouse (Logitech MX Master): amzn.to/2HsmRDN
📸 Webcam (Logitech 1080p Pro): amzn.to/2B2IXcQ
📢 Speaker (Beats Pill): amzn.to/2XYc5ef
🎧 Headphones (Bose Quiet Comfort 35): amzn.to/2MWbl3e
🌞 Lamp (BenQ E-reading Lamp): amzn.to/3e0UCr8
🌞 Secondary Lamp (BenQ Screenbar Plus): amzn.to/30Dtafi
💻 Monitor (BenQ EX2780Q): amzn.to/2HsmUPZ
💻 Monitor (LG Ultrawide 34WN750): amzn.to/3dSD7tS
🎙 Mic Boom Arm (Rode PSA 1): amzn.to/30EZw9m
🎚 Audio Interface (Focusrite Scarlet 4i4): amzn.to/2TjXsih
💸 Donations 💸
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- GitHub
- Git
- GitHub tutorial
- Installing Git
- Commits
- Git clone
- Git status
- Tech With Tim
⭐️ Hashtags ⭐️
#GitHub #TechWithTim
⭐️Join KodeKloud Engineer for free and upgrade your DevOps skills: bit.ly/3uywWm3
A trick : watch movies at flixzone. Been using it for watching loads of movies these days.
@Seth Tomas definitely, I've been using Flixzone for since november myself :D
Er edrFftff teff get e
I found new issue when you delete a project it ask me to create encription key when i try to clone the project and add . the am getting this error
The file will have its original line endings in your working directory
error: open("Temp/UnityLockfile"): Permission denied
error: unable to index file 'Temp/UnityLockfile'
fatal: adding files failed
Here are all of the commands that were covered in this video:
Main commands:
git init - initialise git repo inside a directory
git status - view the staging area
git add - add/re-add file to the staging area
git add . - add all files to the staging area
git rm --cached - remove file from the staging area
git commit -m "" - commit staged changes to git repo with a message
git commit -am "" - add all files to staging area then commit
Branch commands:
git checkout -b - create a new branch
git checkout - switch to a branch
git branch - view all branches
git merge - overlay work from branch name onto the current branch
git branch -M - rename current branch to branch name
Remote Repo commands:
git remote add origin - add the url to the repo as a remote with name origin
git push -u origin - upload changes in a branch to origin (the remote repo)
git pull - get changes in remote repo
git clone - clone remote repo and save it to a new directory
For any beginners here using version control in a team setting -- you generally want to avoid the git add . (add all files) command, unless you are 100% certain you want to include all changes to be pushed up into the git repo. Adding any unnecessary files may cause headaches and extra work if you're not being careful.
As always, thank you for the content, Tim!
how to exclude temp file then
You can just simply specify files and directories to ignore in .gitignore file
As a beginner I thought your previous beginner video was better because of your blackboard introduction. This video consolidated the earlier video information and added a few items that you glossed over or didn't include in the earlier one. I wouldn't have gotten as much out of it if I hadn't watched the first one. The overview from the blackboard definitely has an impact for a beginner.
I feel like there is already many of these kinds of videos. Would appreciate a more complex git tutorial with forks, open source contributions, pull requests, and the more complex topics
Great idea!
@@TechWithTim Ty tim ! Helpful as always 😃
I couldn't agree more
Agreed
agreed!!!
thank you tim for your awesome work!
Tim helping to cultivate future programmers with these simple videos! Love your videos.
4:40 git init command initialize repository in proper directory
5:40 go to folder(in cmd) where you had created git repository
10:30 adding files to staging area
Hey Tim, thanks for the tutorial. It really help me understand certain concept and you break it down to simple easy to digest word. Great work.
Thanks for making my git repo cleaner lol.
The sponsor is cool btw. Honestly this is the first sponsor I liked on a video.
I am 06:55 minutes in and your way of explaining things is really fantastic!!
Thank you so much Tim ❤
git commit -m "Binge-Watched and coded it till the end !! Love you, Tim❤❤"
git push -u brain main
great summary of all necessary for commands. thank you! 🙏
This was extremely helpful, thank you Tim!
Thanks for the tutorial really needed this at this time. This is all i wanted to know. Looking forward to the more advanced video for this.
Thankyou very much for this tutorial. It helps me a lot. It makes it way more easier when somebody is showing that in real instead of graphic representation
Awesome tutorial. Great teaching. Understood in one go.
Great video. It was clear and straightforward
You know what we need 😌
Thank u Tim sooooooo much !!!!!!
Thank you so much for the github part. I was struggling to find a good source on that :)
Now i learned how to use git. Thanks again, Tim! Loves from Brazil
I would love so much if you make a video showing how to walk through the commits thanks for the content
Useful and valuable tutorial. Thank's!
Great work tim. Keep it up. You forgot to mention that if the remote repo is having some extra commit. It won't show up automatically to local untill you do git fetch to the local. Correct me if I'm wrong... :)
Thanks a lot! You made it so clear.
To be honest I think even these sponsors including the whole video everything is very informative here in twt... 🤩🤩
Great structure to the video! Thanks
Also please make a tutorial on pull requests, forks, and other GitHub open source stuff. I struggled a lot with them earlier.
Agree
do more about github especially in project managment
Thank you tim
simple and precise
Thanks man - big help.
One of my favorite UA-camr❤
I simply love this video!!!
very helpful, thank you!
Thank you Tim
nice tutorial tim
in 15 mins at 2x speed
@tarun No u
Math 🦍🦍
Mfers with TI-84’s be like
now in 2 mins with document.querySelector('video').playbackRate = 16 at browser console
@@user-zh8fd3vf5c good idea on android
Thanks
Good stuff, thanks!
nice, it really helps me.
Thank you so much.... You’re the best
When you make a really small change to a file, like correcting a spelling mistake, and you want to upload that to make sure you do not have to do that again in case you loose the local files, do you have to commit before pushing the file? Or as you wouldn't want to create a commit for this slightly change could you just push it to the remote repository?
Just this week i deleted a whole webservice by issuing the wrong git commands lol. Thankfully, i could restore it via backup. This will be helpful.
I literally watched your old video just now 😂
Thanks 😊
Hey! Just found your channel and I'm loving the Python videos. I've been using scrims in Scrimba to practice python but I want to level up and starting learning git and github more but I'm getting stuck with the git install. (I do have VScode and I have tried the replit but I just perfer scrim for right now)
My current set up is '/usr/bin/git' and 'git version 2.24.3 (Apple Git-128)' . I tried to upgrade to version 2.34.1 for mac by downloading homebrew and and then asking it to install git. When I checked the path and version after all this it was still showing me my original set up. I tried doing some research to figure why now I'm more confused and also worried I'll do damage to my computer trying to do whatever sudo or sudu thing in my terminal that I've been seeing.
Do you have any advice? Honestly, and I'm slightly embarrassed to admit it, but I need someone to really dumb this process down for me. Like a pre-begginner explanation.
thank you!
if you clone some repository from github to local machine and do some changes in it, push it to github. then this changes where
it will reflect, that existing repository or will it create another repository in my github account??
Hey tim! I just wanted to say I think you should try out tabnine I think it's really cool
Thanks for this tutorial!
Are you advertising it?
@@binaprajapati7709 no, I'm just your average coder
learned!
thanks
Wow and i just yestarday watched the 40 minutes tutorial, but it doesn't matter, am going to watch it anyway lol
Awesome
If any one ask me who is your inspiration to programming then my answer would be definitely TWT
Great job tim explain more about github
thank u so much bro i learn a lot so now I can push up all file so that it will be ok for me now I don't like merge and changing branch hhhh so and I use git bash so much better bro so thanx bro
I saw the repo on your account before this video was out lol
Which one is correct?
KodeCloud spoke with you and offers to sponsor you.
Or its you affiliating just for a commission?
nice.
How do we go back to a previous version of a document?
what is difference between this video and previous one?
Tim, do i watch this 1st or you older one?
This reminds me of the 5D chess with multiverse and time travel
That algo expeert ad is killing me 😭
Oops, you dropped your crown sir.
2nd And well even I have a video on this on my channel 🤭
can anyone explain how is Microsoft's repo is protected from tim's push ?
push request I guess :/
im kinda new to github, any information would be appreciated
Please, please, please, please.... please...
Do a tutorial on the : Feature, Hotfix, Dev and mastet branching system. Use a real case project ! Causr this is the kind of thing that you need to work in a company to learn and it is very difficult to learn by your self, thank for everything
Dude can u do a tkinter version of your Rock paper scissors game...
Hey Guys, how do I remove files from the staging area? (1. Single file and 2. all the files)
like, undo the staging of a file and restore the file from an earlier commit?
goooodd
bro can you make video on unity
Anyone here who use Codeddit App
why do you never introduce how to go back to a previous commits, that's very important
7:12
you forgot the link :/
Which link?
how to create a branch 16:47
seems like anyone can push changes to any git repositories.
hi
Hey!
git in 15 minutes for me on 2x speed
Yay I’m early
22nd viewer!
Branch.
4th comment
pin this cuz im so epic haha meme
Git and windows don't work well together imo
Don't quite see why you need to make a 2nd git/github video considering your last one is only 9 months old..
Just wanted to cover some things I felt I skimmed over and didn’t do a good job of 👍
@@TechWithTim can you post a video on bulding websites in react and node
Fairly long !!! , there is somebody made 9.5 hours