Git Visually Explained

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 81

  • @MasterSergius
    @MasterSergius 5 місяців тому +22

    90% of git usage in small projects - git add, commit, push

  • @avi12
    @avi12 5 місяців тому +36

    I swear you need to collab with Fireship, you are amazing tutors

    • @awesome-coding
      @awesome-coding  5 місяців тому +3

      😅 Thanks!

    • @xtraszone
      @xtraszone 5 місяців тому +2

      Nope, He is doing much better alone by himself only..
      Fireship is nothing but a collection of crap AI videos these days.

    • @awesome-coding
      @awesome-coding  5 місяців тому +5

      @xtraszone I wouldn't mind some of those insane view counts though 😅

    • @xtraszone
      @xtraszone 5 місяців тому

      @@awesome-coding That is also Correct Bro 😆

    • @nobir98
      @nobir98 5 місяців тому

      if I am not wrong, he already collab with Deno

  • @ncpurge789
    @ncpurge789 5 місяців тому +1

    This has got to be one of the best made, most well-explained educational videos I have ever watched

  • @imadzaglou8205
    @imadzaglou8205 3 місяці тому +2

    I watche some videos that are more longer than this, just by reason to find more details and practices to undertand, but when i watch this video i change my thought , it's wonderful short and has more practice and details , also the english its clear for beginners , good job men you'r aweson , keep going i appreciate .

  • @BradArnst
    @BradArnst 3 місяці тому +1

    I didn't learn a lot as I am somewhat past the noob stage. But, this is an excellent video and did help solidify some of my knowledge and I will most definitely use this video to help explain for others. Very good. Good combination of speech, text and graphics (as always).

    • @awesome-coding
      @awesome-coding  3 місяці тому +1

      Glad you enjoyed it! This is one of the videos I worked the most on.

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

      @@awesome-coding I do enjoy all of your videos. I do like how you move along quite quickly actually but never at the expense of missing information. I think that has to do with the combinations of word, graphics, code and so on. I think it isn't easy to get that combination right in so succinct and thorough a manner. Well done. Please do continue.

  • @mmoncif
    @mmoncif Місяць тому

    The best git video ever. Thanks dude!

  • @brendondodd1484
    @brendondodd1484 2 місяці тому

    Excellent video, brother. Thank you.

  • @priyanshuganatra
    @priyanshuganatra 5 місяців тому +1

    Amazing explanation ❤

  • @MaxCupertino-gf5ht
    @MaxCupertino-gf5ht 5 місяців тому +3

    Awesome video

  • @aja749
    @aja749 3 місяці тому +1

    How is this channel on 48K subs? very concise and not a single second wasted.

  • @sheaksadi
    @sheaksadi 5 місяців тому +3

    You missed the most important one
    $ git blame

  • @frankcastle4041
    @frankcastle4041 5 місяців тому +4

    that's what i need

  • @AndTheOfThat
    @AndTheOfThat 5 місяців тому

    one big gotcha to look out for and you stated it but you should empahaize is "git branch" by itself makes the branch based off your current branch
    I cannot tell you how many devs make a feature-one branch, then make feature-two and now it is based off of feature-one when they probably meant to do main
    I recommend getting used to checking where you are before making branches (i also exclusively use git checkout -b new-branch source-branch)

  • @ransomecode
    @ransomecode 5 місяців тому +4

    heck, i thought you were going to explain how git itself works under the hood

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      Sorry :( - I changed the title - didn't want it to be misleading

    • @ransomecode
      @ransomecode 5 місяців тому

      @@awesome-coding Man! you are incredible; most youtubers would've glossed over it, but you decided to take the extra effort to make the correction. Appreciate it✌🎉

  • @siniarskimar
    @siniarskimar 5 місяців тому +1

    1:19 shouldn't this be the other way around? Git doesn't take a snapshot of the entire working directory, ie the project, but works on file changes/diffs
    At most the phrasing here is misleading

  • @mikejohneviota9293
    @mikejohneviota9293 5 місяців тому +3

    i only know git init, git add, git commit, the git push to main

    • @StiekemeHenk
      @StiekemeHenk 5 місяців тому

      You gotta learn some more, GIT is really powerful, especially if you work in teams or on multiple features.

    • @mikejohneviota9293
      @mikejohneviota9293 5 місяців тому +1

      @@StiekemeHenk when things go unright. I just delete the entire project and re upload again 🤣

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      So basically the first 3 minutes in the video? :D

  • @kasper369
    @kasper369 5 місяців тому +3

    Ur using Vim as it's part of git commands, I shared this with junior dev and they are getting error on vim

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      Woops 😑 Didn't think that might be misleading,

  • @ryo_5748
    @ryo_5748 5 місяців тому

    Great job! This might be the easiest video to learn Git. I often end up creating garbage commit messages after feeling mentally exhausted. Do you have any tips for improving this?

    • @awesome-coding
      @awesome-coding  5 місяців тому +2

      Hey! Thanks for the feedback!
      When working on a new feature, just use a feature branch. You can add whatever messages you want in there. I usually do this as well, and I just use the "fix" or "commit" message whenever pushing on that feature branch.
      Then, when the feature is ready to be merged back into main, I do a squash commit (just like I mentioned in the video), and that squash commit receives a meaningful name (like the Feature name and details for instance).
      After the squash merge, the history will show only this last message, and will discard your "garbage" messages.
      Hope this helps!

    • @ryo_5748
      @ryo_5748 5 місяців тому

      @@awesome-coding Thank you for the advice! That makes a lot of sense.
      I'll definitely try using feature branches and squash commits to clean up my commit history.
      Thanks again for the tips and the great video!

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      @@ryo_5748 Thank you! Don't hesitate to reach out anytime you have questions!

  • @paw565
    @paw565 5 місяців тому +2

    Good video, but I hate those flashbanks screens that announce next chapter of the video. Please stick to the dark theme in the entire video.

  • @alinghinea98
    @alinghinea98 5 місяців тому +4

    cherry-pick ftw

  • @dgdev69
    @dgdev69 5 місяців тому

    So I cant believe i have understood this by working with it for 2 years.
    One tip I would give is
    Dont use git reset --hard without pushing the code to remote branch.
    For adding the files just use the staging + icon in vs code.

  • @yt-sh
    @yt-sh 5 місяців тому +2

    9:36

  • @dgdev69
    @dgdev69 5 місяців тому +2

    Vim mentioned

  • @goatfryed5464
    @goatfryed5464 5 місяців тому +1

    writing :wq to save and exit vim as if :x didn't exist. *look of superiority*

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      I write :x only to my wife

    • @goatfryed5464
      @goatfryed5464 5 місяців тому

      @@awesome-coding not only awesome, also wholesome!

  • @aLfRemArShMeLlOw
    @aLfRemArShMeLlOw 5 місяців тому

    It's "without further ADO", not "adieu" ;)

  • @abdoun8214
    @abdoun8214 5 місяців тому

    bro how you created a folder without Cd to it lmao

  • @vaisakh_km
    @vaisakh_km 5 місяців тому

    :) someone watched ThePrimeagin...

    • @awesome-coding
      @awesome-coding  5 місяців тому

      I usually watch him, but I'm not sure what is the correlation here.

    • @vaisakh_km
      @vaisakh_km 5 місяців тому

      @@awesome-coding there was a video 3 days ago about facebook using Mercurial instead of git, prime put up a poll asking how many don't know git, and a huge number of people said they don't know..
      prime planning to do a 6h stream with frontend masters clear every doubt of everyone about git...

    • @awesome-coding
      @awesome-coding  5 місяців тому

      @vaisakhkm783 ah, got it :)) believe it or not it is just a coincidence.. My video took two weeks to produce, so it was planned and worked on way before prime posted the FB mercurial video.

    • @vaisakh_km
      @vaisakh_km 5 місяців тому

      @@awesome-coding no okk :)
      i always understimate work goes into these videos, and when i edit a video, i wonder why i can't make a movie in 1day XD

  • @jaydeep-p
    @jaydeep-p 5 місяців тому +4

    I know rebase, but I don't care 😤

  • @warguy6474
    @warguy6474 5 місяців тому +1

    why does your voice sound like ai wtf

    • @awesome-coding
      @awesome-coding  5 місяців тому

      Probably because I have no soul 🥲

  • @neanelu5
    @neanelu5 5 місяців тому

    Nice video, but the title is a bit deceitful.

    • @awesome-coding
      @awesome-coding  5 місяців тому

      In what way?

    • @neanelu5
      @neanelu5 5 місяців тому

      @@awesome-coding ha, you changed it

    • @CoConnoisseur
      @CoConnoisseur 5 місяців тому

      ⁠@@neanelu5 yea I ended up changing it because of the low CTR. Btw nice username :))

  • @samarnagar9699
    @samarnagar9699 5 місяців тому

    this was knowing nothing to knowing the bare least neccesary not advance

    • @awesome-coding
      @awesome-coding  5 місяців тому +1

      It's so hard to please you guys :))

    • @MasudRana-nx4rf
      @MasudRana-nx4rf 5 місяців тому +1

      ​@@awesome-coding Don't think about them.