The BEST way to learn Git👩‍💻

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 225

  • @ashtag4043
    @ashtag4043 2 роки тому +457

    You showed us the workflow in like 10 secs that's dope.

  • @JoshLathamTutorials
    @JoshLathamTutorials Рік тому +61

    I wish this was taught in schools. Too many junior devs struggle with this and it's literally the industry standard.

  • @BenRangel
    @BenRangel 2 роки тому +79

    A good method of practical git learning is to have a friend set up a repo. You start a new branch that changes a file, then your friend changes the same file and pushes to master/main while you try to resume your branch.
    Then you learn how to deal with the merge conflicts.
    In a repo where it doesn't matter if you mess up.
    But you pretty much need to try it out practically to get it - it's very hard to learn this from a textbook or documentation only.

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

      I just created another account to learn collaboration on github

    • @SASA_maxillo
      @SASA_maxillo Рік тому +12

      What if you don't have friends that knows a sh* about programming 😂😂

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

      ⁠​⁠@@SASA_maxillosame. But we could be.

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

      ​@@bilalshaikh6603same, but we could be too

    • @hometrier9140
      @hometrier9140 11 місяців тому +3

      @@SASA_maxilloact as u are ur friends. Create two accounts,

  • @X21XXI
    @X21XXI 11 місяців тому +1

    Omg, thank you so so much Lewis. Git is so intimidating to me and all the tutorials look like they require a "minimum 3 years experience" with a billion ways of doing the exact same thing. This is so refreshing and encouraging.

  • @william.darrigo
    @william.darrigo Рік тому +5

    Git is difficult at first but once you learn it's really straightforward

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

      Yep had to learn git in depth. It seemed really boring and hard to understand but it's so nice now working with git even if it's in a ui cause I know what is going on

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

    This repository is such a wonderful idea, thank you for bringing it to my attention!
    I've just started on my first proper coding project and decided I need to sit down and learn some discipline with version control.

  • @landonwjohnson
    @landonwjohnson 9 місяців тому +1

    In a previous role, we brought on several junior developers, leading to a day where I devoted eight hours solely to code review due to their unfamiliarity with Git. I ended up creating documentation on guide how they should be using Git within our project to streamline the process.

  • @crystalriddle4025
    @crystalriddle4025 Рік тому +2

    I am sooo happy I found you! This will help tremendously. I am so lost in git, at this point I feel like I have messed up everything lol. Thank you for all of your helpful shorts and videos.

  • @FernandoHernandez-jp4gt
    @FernandoHernandez-jp4gt Рік тому

    This makes so much sense now in a general way. Thank you!

  • @andrewmanninen1244
    @andrewmanninen1244 2 роки тому +17

    This may help my team when we finally migrate from CVS to git

    • @szilardfineascovasa6144
      @szilardfineascovasa6144 11 місяців тому +1

      Ah, nostalgia hit me hard! Been a while since I've heard that name.
      And I was sooo pissed-off when someone said we have to migrate to git!
      (Besides, to this day, I think Mercurial was better than git.)

  • @CodingWithLewis
    @CodingWithLewis  2 роки тому +53

    What would you like me to explain next? 🤔

    • @allan4386
      @allan4386 2 роки тому +12

      Space and time complexity

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

      How can we start making content (writing, making videos), maybe using your experience or tips from you..
      How did you start?

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

      How a database works! If you haven’t already covered it

    • @Semilore317
      @Semilore317 2 роки тому +2

      Bash scripting.

    • @kamaljeetsahoo4752
      @kamaljeetsahoo4752 2 роки тому +2

      How to find organizations to contribute on GitHub for beginners?

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

    Just started a course last week, makes me happy that I actually understand terminology of this stuff😁

  • @ggff2269
    @ggff2269 Рік тому +8

    I basically create a repository, and test my code 2-3 times and push directly into master branch for personal project. Two step process

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

      I mean, if it works then I see no problem here lol

  • @ethanboyd4835
    @ethanboyd4835 Рік тому +3

    I'm taking the Odin Project Right now, the first things it teaches you are how to use the Command Line and how to use Git and Github!!

  • @BenRangel
    @BenRangel 2 роки тому +81

    When I learned git and github (coming from other version control systems) I was confused by the term "pull request". I knew what it was but I just felt it should be called "push request" or "merge request".
    I viewed everything from the eyes of me as a contributor. I do 'git push' to update my branch, so I figured I'd call it something with push when I wanted to update someone else's main branch.
    Someone had to explain to me a few times the term 'pull request' is seen from the eyes of the maintainer, as they are requested to pull changes into their repo.
    (that being said, it's still not a perfect term in my eyes. Repo maintainers most often say "I'm gonna merge this", they don't really say "I'm gonna pull this")

  • @rushas
    @rushas Рік тому +2

    PS: you still can become a "programmer" without learning the Git.
    It's just less painful to use a version control system

  • @empuraan4710
    @empuraan4710 11 місяців тому

    thanks Lewis..... never reaaalllllyyy understood it till now

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

    Damn I'm watching your content for over 7 months now and I love it. Keep up the good work man.

  • @mihirbose1532
    @mihirbose1532 11 днів тому

    WOW🔥 THANKS

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

    I went to an alternate school for my senior year of highschool to learn programming. They couldn’t find a teacher so they hired a masters student from the close university. We learned git literally first day, with one line text files. It wasn’t until week two that we started learning how to code. This has been the number one advantage I’ve had in college so far.

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

    bro this was super super helpful ty

  • @inferens
    @inferens 2 роки тому +20

    I connected gitlab to vs code. I uploaded 3 little websites

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

      Congrats, you are doing great

  • @Dangit-Dave
    @Dangit-Dave Рік тому

    Now if I could save shorts into a favorites folder that’s be great!

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

    This is very powerfull, nowhere on the internet they were so concrete about what's actually "contributing to open source" means. You could actually ask GPT, BUT...

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

    Damn I'm learning so much from this channel

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

    My first opensource contribution was through this repository 😊

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

    Wow nice explanation vary easy to understand.

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

    Can you do vidoe on how to use programs from github? I always strugle to even donwload files from github

  • @NikitaDrokin
    @NikitaDrokin 2 роки тому +2

    Can you please start adding the mentioned websites inside a comment under your videos? Would be a nice “quality of life” feature.

  • @tahmidrahmankhan1204
    @tahmidrahmankhan1204 2 роки тому +1

    I've done a 'git' class in CS50 (Harvard university), they guys are awsome.

  • @randomname2437
    @randomname2437 2 роки тому +35

    You don't open source your code because you want money.
    I don't open source my code because it's way too embarrassing.

  • @gabrielbarrantes6946
    @gabrielbarrantes6946 11 місяців тому

    I remember when git looked like something really complicated, now it seems trivial lol... Now C++ looks hard

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

    I did it thanks

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

    Really good video, helps a newbie like me

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

    Completed. Much respect bro

  • @SASA_maxillo
    @SASA_maxillo Рік тому +14

    The problem is whenever i want to do all of this, i see SYNTAX I HAVE NEVER SEEN IN MY 2Y OF PROGRAMMING 😂😂💀💀

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

    😮
    This is what I want

  • @nerdsmash4263
    @nerdsmash4263 2 роки тому +1

    Lewis you are the best

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

    This is a good vid thanks

  • @positivityai-gb
    @positivityai-gb 2 роки тому

    Thnx for telling

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

    Thank you very much

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

    Ohh, finally I get it.
    Open source concept was just so confusing to me.

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

    I want to see git being taught in schools. You could assume is something everybody knows I'm this line of work, but a lot of people don't know how to use it.

  • @Cinny09
    @Cinny09 2 роки тому +1

    can you give me link of this git tutorial

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

    Can you make a detail video on this?

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

    I love you videos. Don't think I'll ever be a real programmer but I love scripting in POSH :p

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

    "Git workflow is simple."
    Git: "Time to handle rebases and merge confilcts."

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

    Ohh great 👍 thank u bro 😎

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

    It’s more complicated than it needs to be for some projects you want to do when using git

  • @nanashi2622
    @nanashi2622 2 роки тому +4

    Sadly I learned it the hard way. Wished I knew this.

  • @Salah-YT
    @Salah-YT Рік тому

    bro when u talk about something just put the link in some where please ok thx

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

    woh.. this video got recommended to me after I did my first pull request today on GitHub.

  • @maxxinev.pennelope7179
    @maxxinev.pennelope7179 2 роки тому +1

    OMG i FOUND DESCRIPTION.. but the git repository isnt linked there sadday

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

    Thanks!

  • @maxcharacterlimitreache-
    @maxcharacterlimitreache- 2 роки тому

    Dude, thanks a lot.
    There's so much to learn and this features are often overlooked by courses.
    It's awesome there's people filling the gaps, but it's also awesome and essential to have folks like you, spreading the word.
    Thanks!

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

    Yes best way to learn is by doing!

  • @calcio437
    @calcio437 2 роки тому +6

    I use vscode git :)

    • @NathanHedglin
      @NathanHedglin 2 роки тому +2

      Command line is universal. GUI are nice though

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

    Thank youu

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

    I never understood why people have a hard time understanding how Git works. It’s like the most simple straightforward tool in all of programming lol.

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

      Because teachers explain it in a bad way, I found it hard in university too, but it was easy once I got a job and saw how real People used it..
      And lets be honest, naming schemes like “pull request” could be better.. should have called them “merge request” instead

  • @Rat.s
    @Rat.s 2 роки тому

    Please give links too

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

    Is there a link to that form you showed ???

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

    i really wonder how the merging process works, like, i mean behind the scenes, programatically? like i mean if there is an update of the edited script by the fork how does git handle that?

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

    nicee

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

    Why didn't this video got recommended to me earlier :(

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

    Nice

  • @anirudhmanojc.v3739
    @anirudhmanojc.v3739 Рік тому +3

    first step is to make friends.... i don't think i will become a programmer

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

      Hey! Want to learn together? I'm also looking for a friend to learn this with.

    • @anirudhmanojc.v3739
      @anirudhmanojc.v3739 Рік тому +1

      uhhh sure but.. I kinda already know programming... i mean i can teach you?

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

      @@anirudhmanojc.v3739 what language do u know? I have been learning java for few months so not a beginner

    • @anirudhmanojc.v3739
      @anirudhmanojc.v3739 Рік тому

      @@yumbear for some reason your other comment is invincible to me

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

    Learn master on git

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

    I've only had one lesson in it so far and I have been avoiding it ever since. 😅

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

    Thank you for sharing

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

    Yes sir #freemoney

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

    We do that every other day

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

    Hi Lewis! Can you explain opensource? How can a new programmer use open source to learn and implement? Let's say for MERN stack

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

    I just hate that there are still programs that require command line use. Like, it shouldn't be hard to make submitting a pull request a one button process in most cases

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

      If you are using intellij idea, these can be easily done.

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

    Marketing Alert

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

    where do i find that repository, link plz

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

    and there is me coding directly on the main rep

    • @BenRangel
      @BenRangel 2 роки тому +1

      Nothing wrong with pushing to the main branch in your own one man project.
      There's zero point to using branches and PR:s if you're working on your own project and doing one feature at a time.

    • @GameDev_Master
      @GameDev_Master 2 роки тому +2

      @@BenRangel thanks for clarity

  • @rokokingdom7818
    @rokokingdom7818 2 роки тому +1

    Thank you for beliving im me 😁

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

    Please explain how to make money with coding

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

    Lewis, can you tackle about how to cooperate with another programmer? I'm stuck, and I think I wanna code the game (thesis) on my own and at my own pace. But we were told to cooperate as a team. I just don't get it how. Like how are we supposed to divide the code? And what if that code messes with your code? And vice versa.

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

      When I was a beginner, cooperating on the same code was harder than going solo. Resolving merge conflicts is a pain in the beginning, especially when you're not super familiar with git commands and perhaps a bit sloppy with your own commits.
      I recommend pair programming for a while just to avoid code conflicts.
      Until you hit a point where you can clearly divide the work in a way where you don't need to change each others files.

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

    ohhh i completely misunderstood "pull". i thought it was the opposite of push... been makeing pull requests thinking i was updating my local repo. lol

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

      what would "the opposite of push" be? To revert a push?

    • @becausewin
      @becausewin 2 роки тому +1

      @@BenRangel idk man i skimmed stuff when i was trying to understand. i thought push meant "update git from local" so assumed pull meant "update local from git"

    • @BenRangel
      @BenRangel 2 роки тому +1

      @@becausewin That IS correct though, roughly.

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

      @@BenRangel im so fucking confused rn...

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

      @@becausewin Sorry 😅. Not sure if this helps but I push to upload and pull to download.
      If me or someone else has committed a change via the github web site, my local repo has no idea of that and I need to pull to get those changes.

  • @yousafwazir3167
    @yousafwazir3167 2 роки тому +1

    Thanks

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

    Can you please tell the name of the repository. I am in my first year of university and really want to learn how to use github and do collaborate project's with friends

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

    how to utilize github as a lone programmer....

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

    Me forking First Contribution 😅

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

    What if 2 branches request pull request is one will delete the other? lets say( a b c) the main branch, one will change the b to d so it will be a d c
    And the other will change c to f so it will be a b f, so if the main branch pull the branches, the last will cancel the first one??

  • @pazzoeo
    @pazzoeo 2 роки тому +1

    Why do I need a new branch when i already made a fork ?

    • @CodingWithLewis
      @CodingWithLewis  2 роки тому +2

      So that your branch shows up as a different one on the repo you are forking from :)

    • @pazzoeo
      @pazzoeo 2 роки тому +1

      @@CodingWithLewis ohhh thank you

  • @aaronartale
    @aaronartale 11 місяців тому

    I don't always code, but when i do, i don't use git

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

    Is forking the same thing as just creating a New branch?

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

    I am using github desktop.

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

    Where is the link 🔗

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

    genuinely curious, why can’t you just use the github desktop app to clone a repo and then commit the new version in a few clicks?

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

    Github deskop is enoght?

  • @天馬-u6f
    @天馬-u6f Рік тому

    this is simple pr whole git branching is too complex

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

    Nah git clone directly beg and plead for contributer role then git push --force

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

    Link please

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

    Can you do a video on best practices on using git as a big team / minimising clashes etc?
    In small teams it's not really a problem

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

    One thing i dont get about git is why do you have to fork the repo first? Why not just clone the original, and commit your changes as a pull request?
    Is it just in case you want to submit multiple commits in a single pull request?

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

    Wait you need to fork it before cloning? I guess it’s because we can just push the changes onto the main ourselves.

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

    Git conflicts too ?

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

    Are there items for bug fixes and all that?