r/learnprogramming • • Mar 28 '21

Wow github is actually pretty addicting

I recently made a github to see what all the fuss was about, I also installed WSL and got used to git. I pushed one project onto github and it just felt so satisfying that I went through all my past projects, cleaned them up, and added them. It makes me want to learn more languages and create more ambitious projects just so I can push them and so I can stare at all my repositories lmao.

2.3k Upvotes

139 comments sorted by

View all comments

146

u/[deleted] Mar 28 '21

Wow I never got that feeling. I just push through my IDE and feel like I haven't learned anything about how git should be used in a team environment. I feel like I'm just faking programmer knowledge. I've never restored a previous version of my own code, and I've been pushing updates for a year while I learn.

47

u/dowell_db Mar 28 '21

I've got to agree with you. I've been struggling with trying to use it for months now on my personal projects bc I know it, or something like it) is going to take over the dev team but it's just not clicking. The reflexive functionality I try to utilize, like merging someone's changes into mine, always turns into some mangled mess of obscure terminology. I don't want to be a crotchety old dev with one skill set and no means of improvement. I need to find the high that OP is getting.

30

u/Michael-F-Bryan Mar 28 '21

Something I found quite beneficial when starting out is to read about the different git workflows people use. Understanding what you are trying to achieve and the concepts behind it often helps when deciphering the various magical git incantations.

The GitHub Flow works well for small personal projects where there isn't much work being done concurrently, and GitHub's documentation tends to be fairly approachable.

When I start getting more serious (e.g. working on a team or on a larger project that needs more structure/traceability) I'll follow something like Atlassian's Feature Branch Workflow. This is where each feature is done in its own branch and you'll periodically rebase onto master to pick up recent changes.

Rebasing can be a hard topic to wrap your head around, but the Atlassian article does a fairly good job of explaining it.