Git And GitHub in ~30 Minutes

preview_player
Показать описание

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 📄

⭐️ 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 💰

🔗 Social Medias 🔗

🎬 My YouTube Gear 🎬

💸 Donations 💸
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
- GitHub
- Git
- GitHub tutorial
- Installing Git
- Commits
- Git clone
- Git status
- Tech With Tim

⭐️ Hashtags ⭐️
#GitHub #TechWithTim
Рекомендации по теме
Комментарии
Автор

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 <file> - add/re-add file to the staging area
git add . - add all files to the staging area
git rm --cached <file> - remove file from the staging area
git commit -m "<message>" - commit staged changes to git repo with a message
git commit -am "<message>" - add all files to staging area then commit

Branch commands:

git checkout -b <branch name> - create a new branch
git checkout <branch name> - switch to a branch
git branch - view all branches
git merge <branch name> - overlay work from branch name onto the current branch
git branch -M <branch name> - rename current branch to branch name

Remote Repo commands:

git remote add origin <url> - add the url to the repo as a remote with name origin
git push -u origin <branch> - upload changes in a branch to origin (the remote repo)
git pull - get changes in remote repo
git clone <url> - clone remote repo and save it to a new directory

Nathan-pj
Автор

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!

jonathanlo
Автор

Tim helping to cultivate future programmers with these simple videos! Love your videos.

kenet
Автор

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.

ChrisTietjen_
Автор

Thanks for making my git repo cleaner lol.

The sponsor is cool btw. Honestly this is the first sponsor I liked on a video.

rakeshchowdhury
Автор

git commit -m "Binge-Watched and coded it till the end !! Love you, Tim❤❤"

git push -u brain main

anuraga
Автор

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

abhinavchavali
Автор

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

philosophyindepth.
Автор

Also please make a tutorial on pull requests, forks, and other GitHub open source stuff. I struggled a lot with them earlier. <3

aadityamunjal
Автор

I am 06:55 minutes in and your way of explaining things is really fantastic!!

Thank you so much Tim ❤

Toam
Автор

Hey tim! I just wanted to say I think you should try out tabnine I think it's really cool
Thanks for this tutorial!

ThePhantomCoder
Автор

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... :)

mayankdiwedi
Автор

You know what we need 😌

Thank u Tim much

blazi_
Автор

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.

luqmanhamdan
Автор

Great video. It was clear and straightforward

saniks
Автор

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

huydang
Автор

great summary of all necessary for commands. thank you! 🙏

tmbnes
Автор

Awesome tutorial. Great teaching. Understood in one go.

felixnyamongo
Автор

I would love so much if you make a video showing how to walk through the commits thanks for the content

blacksheep
Автор

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

Salah-YT