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

КОМЕНТАРІ • 119

  • @TechWithTim
    @TechWithTim  3 роки тому +8

    ⭐️Join KodeKloud Engineer for free and upgrade your DevOps skills: bit.ly/3uywWm3

    • @sethtomas8257
      @sethtomas8257 3 роки тому

      A trick : watch movies at flixzone. Been using it for watching loads of movies these days.

    • @oscarangelo9776
      @oscarangelo9776 3 роки тому

      @Seth Tomas definitely, I've been using Flixzone for since november myself :D

    • @ajmirsk2244
      @ajmirsk2244 2 роки тому

      Er edrFftff teff get e

    • @supertenchoo4271
      @supertenchoo4271 2 роки тому

      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

  • @andydeckard
    @andydeckard Рік тому +25

    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

  • @jonathanlo9210
    @jonathanlo9210 3 роки тому +42

    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!

    • @supertenchoo4271
      @supertenchoo4271 2 роки тому

      how to exclude temp file then

    • @shail0124
      @shail0124 Рік тому +1

      You can just simply specify files and directories to ignore in .gitignore file

  • @ChrisTietjen_00
    @ChrisTietjen_00 2 роки тому +3

    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.

  • @abhinavchavali1443
    @abhinavchavali1443 3 роки тому +83

    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

  • @kenet7877
    @kenet7877 3 роки тому +30

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

  • @philosophyindepth.3696
    @philosophyindepth.3696 Рік тому +1

    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

  • @luqmanhamdan9285
    @luqmanhamdan9285 3 роки тому

    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.

  • @rakeshchowdhury202
    @rakeshchowdhury202 3 роки тому +4

    Thanks for making my git repo cleaner lol.
    The sponsor is cool btw. Honestly this is the first sponsor I liked on a video.

  • @Toam99
    @Toam99 3 місяці тому

    I am 06:55 minutes in and your way of explaining things is really fantastic!!
    Thank you so much Tim ❤

  • @anurag01a
    @anurag01a 3 роки тому +9

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

  • @t0m0b0nes
    @t0m0b0nes 3 роки тому

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

  • @mikecann4438
    @mikecann4438 3 роки тому

    This was extremely helpful, thank you Tim!

  • @asadullahaziz
    @asadullahaziz 3 роки тому

    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.

  • @huydang6059
    @huydang6059 2 роки тому

    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

  • @felixnyamongo
    @felixnyamongo Рік тому

    Awesome tutorial. Great teaching. Understood in one go.

  • @saniks5070
    @saniks5070 2 роки тому

    Great video. It was clear and straightforward

  • @blazi_0
    @blazi_0 3 роки тому +1

    You know what we need 😌
    Thank u Tim sooooooo much !!!!!!

  • @danieloliveira9815
    @danieloliveira9815 2 роки тому

    Thank you so much for the github part. I was struggling to find a good source on that :)

  • @caiquecarvalho771
    @caiquecarvalho771 3 роки тому

    Now i learned how to use git. Thanks again, Tim! Loves from Brazil

  • @blacksheep1337
    @blacksheep1337 3 роки тому

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

  • @konradchyrzynski3927
    @konradchyrzynski3927 3 роки тому

    Useful and valuable tutorial. Thank's!

  • @mayankdiwedi6591
    @mayankdiwedi6591 3 роки тому +1

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

  • @Amir_Plays_non_stop
    @Amir_Plays_non_stop 2 роки тому

    Thanks a lot! You made it so clear.

  • @manoramapatra8091
    @manoramapatra8091 3 роки тому

    To be honest I think even these sponsors including the whole video everything is very informative here in twt... 🤩🤩

  • @BrendanMetcalfe
    @BrendanMetcalfe 3 роки тому

    Great structure to the video! Thanks

  • @aadityamunjal7861
    @aadityamunjal7861 3 роки тому +18

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

  • @rezaizadi2815
    @rezaizadi2815 3 роки тому

    do more about github especially in project managment
    Thank you tim

  • @jitendratiwari6886
    @jitendratiwari6886 3 роки тому +1

    simple and precise

  • @asuras3409
    @asuras3409 Рік тому

    Thanks man - big help.

  • @itstechshow7747
    @itstechshow7747 10 місяців тому

    One of my favorite UA-camr❤

  •  Рік тому

    I simply love this video!!!

  • @jenso413
    @jenso413 2 роки тому

    very helpful, thank you!

  • @thaimeuu
    @thaimeuu 4 місяці тому

    Thank you Tim

  • @josephwong2832
    @josephwong2832 3 роки тому

    nice tutorial tim

  • @sasha786123
    @sasha786123 3 роки тому +73

    in 15 mins at 2x speed

    • @janakisasidhar7582
      @janakisasidhar7582 3 роки тому +7

      @tarun No u

    • @saliherk4n
      @saliherk4n 3 роки тому +3

      Math 🦍🦍

    • @vmp916
      @vmp916 3 роки тому +2

      Mfers with TI-84’s be like

    • @user-zh8fd3vf5c
      @user-zh8fd3vf5c 3 роки тому +6

      now in 2 mins with document.querySelector('video').playbackRate = 16 at browser console

    • @iqprogm
      @iqprogm 3 роки тому +2

      @@user-zh8fd3vf5c good idea on android
      Thanks

  • @sparkymarkm322
    @sparkymarkm322 3 роки тому

    Good stuff, thanks!

  • @quianoherminigildojra.4989
    @quianoherminigildojra.4989 2 роки тому

    nice, it really helps me.

  • @swifttechco
    @swifttechco 2 роки тому

    Thank you so much.... You’re the best

  • @lorenabezerradealmeida8512
    @lorenabezerradealmeida8512 3 роки тому

    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?

  • @AvioInsane
    @AvioInsane 3 роки тому

    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.

  • @KishoreKumar-qh7pg
    @KishoreKumar-qh7pg 3 роки тому +1

    I literally watched your old video just now 😂

  • @alhassanali6910
    @alhassanali6910 2 роки тому

    Thanks 😊

  • @kristen8325
    @kristen8325 2 роки тому

    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!

  • @jadhavsourabh
    @jadhavsourabh Рік тому

    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??

  • @ThePhantomCoder
    @ThePhantomCoder 3 роки тому +3

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

  • @arturbabinski7248
    @arturbabinski7248 2 роки тому

    learned!

  • @markadyash
    @markadyash 3 роки тому

    thanks

  • @saidneder41
    @saidneder41 3 роки тому

    Wow and i just yestarday watched the 40 minutes tutorial, but it doesn't matter, am going to watch it anyway lol

  • @videokriitikko5509
    @videokriitikko5509 3 роки тому

    Awesome

  • @Doraredora
    @Doraredora 3 роки тому

    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

  • @Salah-YT
    @Salah-YT 2 роки тому +1

    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

  • @karaway2117
    @karaway2117 3 роки тому

    I saw the repo on your account before this video was out lol

  • @Systemx93
    @Systemx93 3 роки тому

    Which one is correct?
    KodeCloud spoke with you and offers to sponsor you.
    Or its you affiliating just for a commission?

  • @jidetroy5852
    @jidetroy5852 2 роки тому

    nice.

  • @rafaelgoncalves6104
    @rafaelgoncalves6104 3 роки тому

    How do we go back to a previous version of a document?

  • @shail0124
    @shail0124 Рік тому

    what is difference between this video and previous one?

  • @Drop_The_Mic
    @Drop_The_Mic 3 роки тому

    Tim, do i watch this 1st or you older one?

  • @michmart9261
    @michmart9261 3 роки тому +1

    This reminds me of the 5D chess with multiverse and time travel

  • @imlordkrunic2737
    @imlordkrunic2737 3 роки тому +1

    That algo expeert ad is killing me 😭

  • @ARTICFR0ST
    @ARTICFR0ST 3 роки тому

    Oops, you dropped your crown sir.

  • @matiurrahaman1163
    @matiurrahaman1163 3 роки тому +1

    2nd And well even I have a video on this on my channel 🤭

  • @va9if
    @va9if 3 роки тому +1

    can anyone explain how is Microsoft's repo is protected from tim's push ?

    • @va9if
      @va9if 3 роки тому

      push request I guess :/
      im kinda new to github, any information would be appreciated

  • @kademmohammed6836
    @kademmohammed6836 3 роки тому

    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

  • @karthikkm3771
    @karthikkm3771 3 роки тому

    Dude can u do a tkinter version of your Rock paper scissors game...

  • @yasern4227
    @yasern4227 3 роки тому

    Hey Guys, how do I remove files from the staging area? (1. Single file and 2. all the files)

    • @user-bg6mr3rj7d
      @user-bg6mr3rj7d 2 роки тому

      like, undo the staging of a file and restore the file from an earlier commit?

  • @anasbahi8371
    @anasbahi8371 3 роки тому

    goooodd

  • @SanjayKumar-xn2xm
    @SanjayKumar-xn2xm 3 роки тому

    bro can you make video on unity

  • @codeforcoders69
    @codeforcoders69 3 роки тому +1

    Anyone here who use Codeddit App

  • @pinghe1791
    @pinghe1791 3 роки тому

    why do you never introduce how to go back to a previous commits, that's very important

  • @devbrah
    @devbrah Рік тому

    7:12

  • @ee399
    @ee399 3 роки тому

    you forgot the link :/

  • @mubashirhussain3885
    @mubashirhussain3885 Рік тому

    how to create a branch 16:47

  • @noobwithiqof70
    @noobwithiqof70 9 місяців тому

    seems like anyone can push changes to any git repositories.

  • @reezzrex4878
    @reezzrex4878 3 роки тому

    hi

  • @zainjadoon759
    @zainjadoon759 3 роки тому

    git in 15 minutes for me on 2x speed

  • @Siddhesh1123
    @Siddhesh1123 3 роки тому

    Yay I’m early

  • @Sciencedoneright
    @Sciencedoneright 3 роки тому

    22nd viewer!

  • @lrnzdc7199
    @lrnzdc7199 2 роки тому

    Branch.

  • @anirudhnair9719
    @anirudhnair9719 3 роки тому

    4th comment

  • @musicianintraining
    @musicianintraining 3 роки тому

    pin this cuz im so epic haha meme

  • @vinzz5282
    @vinzz5282 3 роки тому

    Git and windows don't work well together imo

  • @cd73net
    @cd73net 3 роки тому

    Don't quite see why you need to make a 2nd git/github video considering your last one is only 9 months old..

    • @TechWithTim
      @TechWithTim  3 роки тому +3

      Just wanted to cover some things I felt I skimmed over and didn’t do a good job of 👍

    • @codewithlikhit
      @codewithlikhit 3 роки тому

      @@TechWithTim can you post a video on bulding websites in react and node

  • @mohamedkaram9149
    @mohamedkaram9149 2 роки тому

    Fairly long !!! , there is somebody made 9.5 hours