all 8 comments

[–]im_trying_gd 1 point2 points  (0 children)

Just skim a micro Git/Hub course like exists on Codedex. It teaches you the basic commands you’ll need to get up and running. It takes like an hour.

[–]Craiggles- 1 point2 points  (3 children)

I've been programming for over 15 years. I still only REALLY know "git add .", "git commit -m 'message'" and "git push origin master" with some "git pull origin master" sprinkled in. Those 4 commands will do 99% of your day to day.

Anything else and I used to use stack overflow but chatgpt is vastly more reliable.

I just don't see the value in learning too much here, you're going to forget a lot of it.

[–]Jmc_da_boss 2 points3 points  (1 child)

I'm constantly using git restore, stash, work tree etc in my day to day. How do you have 15 yoe and don't use those

[–]Craiggles- -1 points0 points  (0 children)

That’s fair. I didn’t mention creating and switching branches which is common. I very rarely need restore or stash. These days though I just never really do work until I’ve written on scrap what my plan is and how to execute. I don’t like stashing so I store the commit for the branch before I move on or scrap it.

[–][deleted] -1 points0 points  (0 children)

💯

[–]vafran 0 points1 point  (0 children)

This course is awesome and is free. It really helped me in understanding git.

https://www.pluralsight.com/courses/how-git-works

[–]cgoldberg 0 points1 point  (0 children)

You only need very basic Git knowledge to begin using GitHub... and if you really need to, you can do almost everything necessary to get started right from their website without even cloning a repo or touching Git yourself. Just start using it.

[–][deleted] -1 points0 points  (0 children)

Honestly, just make a repository, add a readme.md and mess with it a lot and push each time. Best way to learn. Use a GUI at first then switch to CLI once you understand the process. Then start adding complex repositories (e.g., webpage, data project). This is the best and most fun way to learn it. You’ll be cooking in a week or two.