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.
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.
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
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.
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.
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.
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.)
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")
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.
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...
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.
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!
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
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?
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
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.
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.
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.
@@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"
@@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.
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
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??
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?
You showed us the workflow in like 10 secs that's dope.
I wish this was taught in schools. Too many junior devs struggle with this and it's literally the industry standard.
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.
I just created another account to learn collaboration on github
What if you don't have friends that knows a sh* about programming 😂😂
@@SASA_maxillosame. But we could be.
@@bilalshaikh6603same, but we could be too
@@SASA_maxilloact as u are ur friends. Create two accounts,
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.
Git is difficult at first but once you learn it's really straightforward
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
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.
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.
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.
This makes so much sense now in a general way. Thank you!
This may help my team when we finally migrate from CVS to git
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.)
What would you like me to explain next? 🤔
Space and time complexity
How can we start making content (writing, making videos), maybe using your experience or tips from you..
How did you start?
How a database works! If you haven’t already covered it
Bash scripting.
How to find organizations to contribute on GitHub for beginners?
Just started a course last week, makes me happy that I actually understand terminology of this stuff😁
I basically create a repository, and test my code 2-3 times and push directly into master branch for personal project. Two step process
I mean, if it works then I see no problem here lol
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!!
Update? How’s ur progress
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")
GitLab says merge request
Please 🥺🥺
P
P
@@eloimartinez9446 the
PS: you still can become a "programmer" without learning the Git.
It's just less painful to use a version control system
thanks Lewis..... never reaaalllllyyy understood it till now
Damn I'm watching your content for over 7 months now and I love it. Keep up the good work man.
Thanks so much! 😀
No problem 😀
WOW🔥 THANKS
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.
bro this was super super helpful ty
I connected gitlab to vs code. I uploaded 3 little websites
Congrats, you are doing great
Now if I could save shorts into a favorites folder that’s be great!
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...
Damn I'm learning so much from this channel
My first opensource contribution was through this repository 😊
Wow nice explanation vary easy to understand.
Can you do vidoe on how to use programs from github? I always strugle to even donwload files from github
Can you please start adding the mentioned websites inside a comment under your videos? Would be a nice “quality of life” feature.
I've done a 'git' class in CS50 (Harvard university), they guys are awsome.
Where i geT CS50 lec bro?
You don't open source your code because you want money.
I don't open source my code because it's way too embarrassing.
Word tho
I remember when git looked like something really complicated, now it seems trivial lol... Now C++ looks hard
I did it thanks
Really good video, helps a newbie like me
Completed. Much respect bro
The problem is whenever i want to do all of this, i see SYNTAX I HAVE NEVER SEEN IN MY 2Y OF PROGRAMMING 😂😂💀💀
😮
This is what I want
Lewis you are the best
This is a good vid thanks
Thnx for telling
Thank you very much
Ohh, finally I get it.
Open source concept was just so confusing to me.
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.
can you give me link of this git tutorial
Can you make a detail video on this?
I love you videos. Don't think I'll ever be a real programmer but I love scripting in POSH :p
"Git workflow is simple."
Git: "Time to handle rebases and merge confilcts."
Ohh great 👍 thank u bro 😎
It’s more complicated than it needs to be for some projects you want to do when using git
Sadly I learned it the hard way. Wished I knew this.
bro when u talk about something just put the link in some where please ok thx
woh.. this video got recommended to me after I did my first pull request today on GitHub.
OMG i FOUND DESCRIPTION.. but the git repository isnt linked there sadday
Thanks!
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!
Yes best way to learn is by doing!
I use vscode git :)
Command line is universal. GUI are nice though
Thank youu
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.
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
Please give links too
Is there a link to that form you showed ???
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?
nicee
Why didn't this video got recommended to me earlier :(
Nice
first step is to make friends.... i don't think i will become a programmer
Hey! Want to learn together? I'm also looking for a friend to learn this with.
uhhh sure but.. I kinda already know programming... i mean i can teach you?
@@anirudhmanojc.v3739 what language do u know? I have been learning java for few months so not a beginner
@@yumbear for some reason your other comment is invincible to me
Learn master on git
I've only had one lesson in it so far and I have been avoiding it ever since. 😅
Thank you for sharing
Yes sir #freemoney
We do that every other day
Hi Lewis! Can you explain opensource? How can a new programmer use open source to learn and implement? Let's say for MERN stack
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
If you are using intellij idea, these can be easily done.
Marketing Alert
where do i find that repository, link plz
and there is me coding directly on the main rep
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.
@@BenRangel thanks for clarity
Thank you for beliving im me 😁
Of course! :D
Please explain how to make money with coding
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.
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.
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
what would "the opposite of push" be? To revert a push?
@@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"
@@becausewin That IS correct though, roughly.
@@BenRangel im so fucking confused rn...
@@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.
Thanks
Welcome :D
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
how to utilize github as a lone programmer....
Me forking First Contribution 😅
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??
Why do I need a new branch when i already made a fork ?
So that your branch shows up as a different one on the repo you are forking from :)
@@CodingWithLewis ohhh thank you
I don't always code, but when i do, i don't use git
Is forking the same thing as just creating a New branch?
I am using github desktop.
Where is the link 🔗
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?
Github deskop is enoght?
this is simple pr whole git branching is too complex
Nah git clone directly beg and plead for contributer role then git push --force
Link please
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
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?
Wait you need to fork it before cloning? I guess it’s because we can just push the changes onto the main ourselves.
Git conflicts too ?
Are there items for bug fixes and all that?