Git It? How to use Git and Github

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 330

  • @Fireship
    @Fireship  6 лет назад +335

    FYI this video was a "Premiere" so make sure to check out the live chat replay for the full experience 🍿

    • @davidandrei22
      @davidandrei22 4 года назад +9

      Can I still send a pull request for a sticker? 😂 I bet they're awesome.

    • @bullettime2808
      @bullettime2808 4 года назад

      Please tell me what's your VS Code color and icon theme

    • @flleaf
      @flleaf 3 года назад

      @@bullettime2808 he writes it in every descriptions (for newer videos)

    • @kalishaatlas6297
      @kalishaatlas6297 Год назад +1

      5:13 5:13 5:13 5:13

    • @kalishaatlas6297
      @kalishaatlas6297 Год назад +1

      GitHub one 5:13

  • @emilgabriel81
    @emilgabriel81 2 года назад +395

    quite impressive how efficient this guy can be at explaining. it is literally everything you need to know in order to start with git and github

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj Год назад +4

      anyone can be, whean the script is pre-made.. his literally reading a premade polished text and recording it with a microphone...
      this isn't a live explanation / articulation ; )

    • @pietrofulceri5759
      @pietrofulceri5759 Год назад +3

      @@Microphunktv-jb3kj i impressive the same

    • @isoaga66
      @isoaga66 Год назад +18

      @@Microphunktv-jb3kj He is still explaining. Doesn't matter if it's a script. He had to write it in the first place to record the video. That's actually how most of the videos are made

    • @w1z4rd9
      @w1z4rd9 Год назад

      @@Microphunktv-jb3kj No shit sherlock ;;))

    • @VoidPaul97
      @VoidPaul97 Год назад +1

      IKR? I'm literally a beginner in almost everything about code, and now I've successfully implemented Git on a project of mine, and have a GitHub repo on it.
      I won't share it here for two reasons:
      1. It's on Spanish, so most of the people besides my classmates wont understand a thing.
      2. I don't want to self promote.
      But if you guys want to risk yourselves then I could post it here.

  • @Xphy
    @Xphy Год назад +182

    I didn't Git it

  • @christophergruendell8089
    @christophergruendell8089 10 месяцев назад +17

    I’m probably gonna have to rewatch this like 30 times before I am actually proficient in what he’s speaking about but everything I need is here. Thanks Fireship!

  • @KamelJabber1
    @KamelJabber1 6 лет назад +538

    dude! seriously, this video was pretty great but the user participation with the sticker is pure genius and a great touch! I feel you have really raised the bar of YT tech and educational content and is on the cutting edge of where the platform can go.
    I recently used scribe and was blown away by how simple and useful it was. This reminds of that, GG, keep up the good work!

    • @Fireship
      @Fireship  6 лет назад +39

      Thank you Kamel, really appreciate the feedback. The sticker idea was a risk, but glad to see the pull requests flowing in 😀

    • @seenu69
      @seenu69 Год назад +3

      What's scribe?

    • @davesomeone4059
      @davesomeone4059 Год назад +1

      @@seenu69 I think the ancient Egyptians use them.

    • @Microphunktv-jb3kj
      @Microphunktv-jb3kj Год назад +1

      git hasnt revolutionized anything.. there were and still is many version control systems out there being used.
      ive encountered a developer who has coded for 43 years and he has never used git

  • @dhedarkhcustard
    @dhedarkhcustard 4 года назад +53

    Another pro tip when comparing changes in VS Code you can select 1 or more lines of code, right click and select "stage selected changes" so you don't have to commit a whole file.

  • @me_lvin7068
    @me_lvin7068 Год назад +8

    Four years later, this git guide is still gold! I originally used git stash as an alternative to git reset.😂I know better now and this video just brings back memories during my first few weeks of learning to code. Cheers mate!

  • @jaynj908
    @jaynj908 5 лет назад +15

    I tried to use git years ago when I tried to learn C++. Years later decided to take up Python and discovered VSC. This video really helped out.

  • @mpldr_
    @mpldr_ Год назад +20

    I would like to submit a patch:
    - do small commits
    + do commits rebase and squash them until you have a nice topical package and ensure that every commit by itself is compilable (This allows for easier bisects later on).

  • @StelaTasheva
    @StelaTasheva 4 года назад +29

    I've passed few online tutorials/courses for git/github, spent some time reading documentation and stuff,... What I want to say is that this video is straight to what is basic but really important. Squashed into 10 minutes... awesome

  • @samuelkatz2463
    @samuelkatz2463 2 года назад +2

    It's quite wonderful to see how many profiles who've forked this project are now onto doing some very interesting things!

  • @Nostalgia_Realm
    @Nostalgia_Realm 15 дней назад

    Used this to start my Git and programming journey. Thanks so far! 😃

  • @JonSmoley
    @JonSmoley 6 лет назад +159

    I love these more general framework-agnostic videos. 🐶

    • @Fireship
      @Fireship  6 лет назад +19

      Thanks Jon! I want to tackle at least one general topic per month.

    • @curiosdevcookie
      @curiosdevcookie 4 года назад

      Thanks, me2!

  • @stargazer7644
    @stargazer7644 3 месяца назад +2

    This is a great tutorial for those who already know how to use git and don't need the tutorial.

  • @beyondcatastrophe_
    @beyondcatastrophe_ 4 года назад +65

    I would recommend "git add -A" instead of "git add .", since this has the added benefit of removing deleted files in the repository
    This is because '.' is expanded to all files in this (sub)directory by the shell and git does not receive the dot, while '-A' tells git to do this itself

    • @sodiboo
      @sodiboo 4 года назад +8

      technically . is expanded to the current directory, which git itself expands to all files and subdirectories within it - correct that it does not receive the . but not *quite* accurate what it does receive

  • @SCTproductionsJ5
    @SCTproductionsJ5 3 года назад +4

    Man... a RUclips channel I don't put on 1.5x or 2x speed. That's an accomplishment!

  • @chiragsingla.
    @chiragsingla. 3 года назад +6

    I used to feel embarassed when I didn't know git, now I know it and it's very helpful, I also have a workflow and pre-commit setup very helpful

  • @raresdude
    @raresdude 6 лет назад +19

    Just came back to thank you for the sticker! Didn't think you will send it all the way across to Romania. Keep up the good work, Jeff. :)

  • @lucyebrada2950
    @lucyebrada2950 11 месяцев назад +2

    This feels too big of a pill to swallow within a short time. I hope I do understand this after a few more replays within the week 🤞🏻

  • @fabiojonathanarifin1
    @fabiojonathanarifin1 Год назад +2

    Sir, I saved at least a hundred thousand dollars of college tuition fee because of you...

  • @lvzy5833
    @lvzy5833 3 года назад +3

    Definitely underrated concise tutorial on git

  • @IAmNumber4000
    @IAmNumber4000 3 года назад +5

    I knew Git was supposed to be useful before I knew how to use it but wow. That's super useful.

  • @notcapnbloodbeard
    @notcapnbloodbeard Год назад +1

    never have I been so confused yet learned something new at the same time

  • @SirLasterOfDesaster
    @SirLasterOfDesaster 4 года назад +1

    Yeeaaa THANK YOU!
    Now I understand the process of merging.
    I always thought I have to stay in the branch to merge to the master. But the right way is stay in the master an merge the features in from the branch to the master.

  • @entrey_ua
    @entrey_ua 4 года назад +3

    This channel is trully the best one.
    Short, useful, essential information. Just great!

  • @d33znameless68
    @d33znameless68 6 лет назад +7

    I'll be watching all of your videos. I definitely need all the help I can get for learning everything programming / coding related.

    • @Fireship
      @Fireship  6 лет назад +4

      That's what this channel is here for, thanks for watching!

  • @eip408
    @eip408 3 года назад +2

    This is the tutorial🔥 Saw a lot of git tutorials on youtube but this one explains the best🙌🏼 Thanks man🐙

  • @curtdp
    @curtdp 6 лет назад +5

    Wow! This is very tightly packed piece of info on how to start git! With huge amount of work on video editing... Thank you! 🙌

  • @frankcastellanos
    @frankcastellanos Год назад +2

    This video saved my life!

  • @anirbankopty9418
    @anirbankopty9418 Год назад

    The video is efficient, just you could mention where you were changing accounts for the forking and pull request section.

  • @glenimal
    @glenimal 2 года назад +1

    One my best 12:19 minutes ever spent on RUclips, top class ❤️🅿️

  • @sanjacobs6261
    @sanjacobs6261 3 года назад +1

    This video being VSCode-specific was a mistake. It could've been the one place you need to go to learn git for anything or anyone, but now it's only the best video for very specific software developers.

  • @glitched.gaming
    @glitched.gaming Год назад +3

    So I am hoping that this tutorial will help me, I'm nearing my last straw. I don't know why Git is so hard for me to grasp. I started programming learning Java (Huge mistake) and that felt like I was trying to swallow an elephant. Just wrapping my head around the OOP concepts drove me to breakdowns crying. Since then I've been able to grasp other languages like Javascript and Python, but for some reason I feel like I'm learning Java All over gain and have broken down more than once. So in advance thank you. and cross your fingers.

  • @bjk837
    @bjk837 4 года назад +6

    This is brilliant! You got rewarded for learning not simply for watching! I haven’t seen that before!...makes the RUclipsr/Subscriber relationship feel a bit different and refreshingly new...it’s not passive it’s active #pioneer

  • @drullo
    @drullo 6 лет назад +10

    Excellent! Thank you for the great videos. You have a good, concise format that conveys the essential information and targets your audience very well.

  • @thesqueak5474
    @thesqueak5474 4 года назад +2

    one of the best git tutorials ive seen.. keep up the gd work man

  • @IhorVyshniakov
    @IhorVyshniakov 7 месяцев назад

    Thank you for compressing all this knowledge to easy visual understanding concepts 🤘

  • @baibhavchakraborty1560
    @baibhavchakraborty1560 2 года назад +1

    I used to suck at git. But this has helped me.
    Thanks a lot brother ☺️.

  • @jeffbasos3258
    @jeffbasos3258 2 месяца назад

    I swear all the other teachers I've watched talk at the speed of a turtle and leave me confused after watching an hour video. Fireship the goat.

  • @arsikkbar
    @arsikkbar Год назад +2

    And now i am here, in late 2023

  • @jakobarsement8266
    @jakobarsement8266 3 года назад +2

    Stickers haha. Brilliant way to make your videos interactive. Anymore giveaways coming soon?

  • @PeterPorker24
    @PeterPorker24 6 лет назад +6

    Dude, i love this channel. Appreciate all your work!

  • @PedroRamos1991
    @PedroRamos1991 5 лет назад +2

    More tips about git. Thanks for sharing this content

  • @stefano8936
    @stefano8936 2 года назад

    You can't always git what you want.
    But if you try sometimes, you git what you need.

  • @sarveshdevrukhakar
    @sarveshdevrukhakar Год назад

    This is feb-2023 and this video is still relatable and helpful. Wonderful!

  • @VoidPaul97
    @VoidPaul97 Год назад +1

    I would like to add the encryption on Java (since it's the only language I'm learning because of college. I chose to learn programming, but since in my country Java is the best paid programming language I'm learning it there. No complains about it so far, but I'm pretty sure that when I move to another language like Kotlin, Swift, or C# I'll understand why people hate it. In the meantime I'll have to add that encryption through Java)

  • @HyperCodec
    @HyperCodec Год назад

    With rust it automatically gives you a repo. Just another nice little convenience

  • @darshangowda309
    @darshangowda309 6 лет назад +12

    Application of encryption here was just amazing 🤯 Never thought of it this way :P thanks 💣

  • @RaghuprasaadIyer
    @RaghuprasaadIyer 4 года назад +2

    what an intro animation ....awesome

  • @tilakmadichettitheappdeveloper
    @tilakmadichettitheappdeveloper 4 года назад +3

    I learnt Git and Github in 6 minutes by playing it at 2X speed

  • @yukihyo8394
    @yukihyo8394 5 лет назад +3

    just a really big pro tip for people learning git and not grasping it at all (it took me a while to understand the power of git)
    PLEASE use a git client (i 100% recommend gitkraken, since it gives you a really nice and clear graph which really helps understand what the fuck is going on)
    you are simply not gonna be able to memorize all the commands, and you will 100% forget how your repo structure looks like.
    it boils down to, command line sucks for learning.
    and please dont fall in the trap of: "Real programmers only use git on the command line", unless you wanna be less efficient
    if you got questions about git and gitkraken or anything feel free to leave a command :p

  • @humand0969
    @humand0969 Год назад +2

    Turns out it's a folder tree! Nice! (no sarcasm, it's actually nice)

  • @jamilvillones5020
    @jamilvillones5020 2 года назад +1

    And just like that. I can now use Git. Great video as always!

  • @spooki-2451
    @spooki-2451 4 года назад +3

    sadly, i don't know what plug-in you used to generate the defaults for your environment. gitlens doesn't seem to have that functionality

    • @zaack9483
      @zaack9483 Год назад

      Same problem here, it would be cool it it was in the description.

  • @jubayeralam8358
    @jubayeralam8358 11 месяцев назад +4

    bro you went from 1+1=2 to quantam mechanics within a blink of an eye , thats not beginner friendly

  • @chavdamahesh2772
    @chavdamahesh2772 4 года назад +2

    Please create tutorials on How this animations is created .

    • @maheshchavda6248
      @maheshchavda6248 3 года назад

      @Super Mario Yup ofcourse 😁😁
      Thanx buddy ...

  • @md.mohaiminulislam9618
    @md.mohaiminulislam9618 Год назад

    this is it, to the point, no time wasting

  • @MercyFromOverwatch2
    @MercyFromOverwatch2 3 года назад

    Jeff is my favourite tech youtuber

  • @mehedirifat9072
    @mehedirifat9072 3 года назад +1

    This video is helping me in 2021

  • @joaomarcelofurtadoromero8277
    @joaomarcelofurtadoromero8277 Год назад

    lovely Firekid in the background 6:11

  • @keokawasaki7833
    @keokawasaki7833 4 года назад +1

    i thought my screen was dying when the video started to glitch

  • @alvinquezon5973
    @alvinquezon5973 5 лет назад +3

    Hi Fireship, great tutorial, however can you do a advance topic like rebase and other advance functionality for github? Thank you!

  • @73dines
    @73dines 4 года назад

    This is the only channel which I have to follow on .75.
    Perfect content if you ask me.

  • @saint_michael_the_archangel
    @saint_michael_the_archangel 2 года назад

    Hey man, you're great. Love your videos. Keep going, you're almost there.

  • @cinamynj
    @cinamynj Год назад

    Learning about git today
    I so wish I didnt need to Linux
    But its like the easiest way to get it going

  • @marcellorebello4487
    @marcellorebello4487 5 лет назад +4

    First: Thank you! I really like the information in your videos. But for me you move a little bit to fast through through the topics in your videos which makes it hard to watch because i have to go back everytime.

    • @skylark.kraken
      @skylark.kraken 4 года назад

      It's better to be too fast than too slow, you can change the video speed to something more manageable - but for most of us we want to get through it quickly and know where to go back to to review

  • @avi12
    @avi12 5 лет назад +2

    GitHub should use this video to explain how to use Git and GitHub

  • @tender.branson
    @tender.branson 2 года назад

    I never use add, always just commit -am. Also I don't squash, but follow Conventional Commits guidelines.

  • @nbamj88
    @nbamj88 6 лет назад +1

    As always, a very smart way of teaching

  • @programinggrid967
    @programinggrid967 4 года назад +1

    Suggestion: make on docker like this one.

  • @gardient
    @gardient 6 лет назад +3

    hey, thanks for the sticker, totally forgot about it until my dad asked "What's with the envelope?", we have the same name so sometimes it's hard to tell what's for who, had a laugh the moment I saw the sticker, thanks again

  • @samwansamwer5807
    @samwansamwer5807 3 года назад +1

    AAAAND git is invented by Linus Torvalds. Thank you sir Linus.

  • @jesselima_dev
    @jesselima_dev 6 лет назад +2

    Always awesome tips Jeff. Thanks!!!

  • @SCTproductionsJ5
    @SCTproductionsJ5 3 года назад +1

    Around the 9:00 mark, why can't you just *clone* or *checkout* from someone's repository without having to fork it?
    Also, is forking how a person would normally compile and run open source software on their own? How easy/hard is that to do? ...cause I feel like every software would be different.

  • @merebhayl5826
    @merebhayl5826 3 года назад

    Please make your recorder display the hotkeys you press at the bottom? that would really make it really really helpful.
    ⌘ + D ...

  • @fzmdev
    @fzmdev 4 года назад +1

    Can you renew the firebase authentication video using angular.and also add phone login. Please

  • @dhanrajshetty645
    @dhanrajshetty645 2 года назад

    Best place to learn web developement.

  • @mjackstewart
    @mjackstewart Год назад +1

    I would love to know more about advanced conflict resolution. I feel like a monkey banging two sticks together sometimes, and I'm actually embarrassed to ask my coworkers.
    Your content is awesome, though, hoss!

    • @mjackstewart
      @mjackstewart Год назад

      And you might want to explain the difference between main/master/origin/remote. Those can be vexing when you first start.

  • @MadOgre22
    @MadOgre22 2 года назад +1

    How do emoji in commit messages result in more stars on your project?

  • @ismannyb8148
    @ismannyb8148 4 года назад

    I use gitflow plugin in vs code to setup the branching model . Git is awesome

  • @pt7944
    @pt7944 6 лет назад +10

    nothing on git rebase ? that's like the most useful one nobody uses !

    • @Fireship
      @Fireship  6 лет назад +6

      I recorded a whole section on rebase during the merge section, but pulled it out bc it just seemed to confusing for this vid. But yeah, rebase is a great way to get a feature up to speed with the master.

    • @dusscode
      @dusscode 4 года назад

      P T I prefer squash and merge.

  • @VoidPaul97
    @VoidPaul97 Год назад +1

    The 336 people who disliked don't know English, and that's why they did it. I don't see any other logical reason why someone would dislike the lifesaver video.

  • @ewerninghaus
    @ewerninghaus 3 года назад +1

    Great video. Looking into the programs, I was expecting the encryption/decryption being wrote by you. Not the case, simply RSA.encrypt and .decript. Anyhow, thanks for the overview.

  • @MrStefanica
    @MrStefanica 3 года назад

    Another Excellent video ! Thanks ! 🙂
    Small commits and squash flag are, as to me, two very useful pieces of advice.

  • @sridhar-natuva
    @sridhar-natuva 6 лет назад +1

    Nice video to remind basics again. Thank you.

  • @spendmoney303
    @spendmoney303 3 года назад +1

    how pro i want to be one day. long journey ahead. thank you for this great free info! liked!

  • @cholasimmons
    @cholasimmons 2 года назад +1

    learning to code wasn't enough headache, now there's git :(

  • @spacecowboy3063
    @spacecowboy3063 4 года назад +2

    are you still sending the stickers ?? lol, ive never submitted a pull request so im gonna do this to learn it

    • @Fireship
      @Fireship  4 года назад +1

      No, but I'm going to do a similar pull request give away soon, so stay tuned

  • @Tyokok
    @Tyokok 5 лет назад

    AWESOME 12 min video on git! Thanks a lot! One quick Q: what is npm install? why you need it after clone from github? Thank you!

    • @maix52
      @maix52 5 лет назад

      I think npm install get all dependency required and install them so you have the node_modules folder with all modules installed

  • @zozo1603
    @zozo1603 6 лет назад +6

    I got the sticker finally! 😊(from Hungary) 🔥🔥🔥

  • @naco747
    @naco747 11 месяцев назад

    I don't understand why when you fork someone else's repo, you create a new branch. Why can't just you make changes on the master branch of the forked repo?

  • @jsonkody
    @jsonkody 5 лет назад +1

    This channel has amazing quality

  • @Joshfw892
    @Joshfw892 6 лет назад +2

    Nice video, I've used source tree before which is more of a UI based source control. I would prefer to use something more terminal based. Will be keeping an eye on this.

  • @alternateName600
    @alternateName600 4 месяца назад

    5 years later i managed to crack the key to get all the addresses

  • @mohammadimran2219
    @mohammadimran2219 4 года назад +4

    6:11 Who else heard the cat in the background?

  • @vimtor
    @vimtor 5 лет назад

    Hey great video! A follow up about git flow would be nice.

  • @Arnauuumm98
    @Arnauuumm98 4 года назад

    Your videos are excellent, keep up the good work! Love your videos!

  • @diazfarindra1855
    @diazfarindra1855 4 года назад +2

    hey mmm, how can i add that emoji? in source code or in command line?

  • @jasongoossens
    @jasongoossens 4 года назад +1

    Quick question: is it good practice to commit your gitignore file or not? Thanks!

  • @lyto2326
    @lyto2326 5 лет назад +1

    Love this video and its style! Also great advices even fot those that we already were using Git :D