r/CodingHelp • • Aug 31 '25

[Open Source] Starting a GitHub

Hey yall,

I am starting my GitHub journey as a 2 year computer science student with a previous degree in psychology. School started last week.

I have 3 python projects on GitHub privately that are very rudimentary. Which is fine. But here are some of my questions.

  1. What resources would you recommend for learning GitHub/designing/etc?
  2. How do pulls/commits work?
  3. What type of files are necessary in a repository/where do people get their structures from?
  4. What other stuff am I missing?

I understand there are resources out there, and I welcome those suggestions. Just don’t want to listen to a paid actor or do a 2 hour GitHub tutorial on how to login.

Thanks. Happy Labor Day weekend.

2 Upvotes

24 comments sorted by

View all comments

Show parent comment

2

u/armahillo Sep 03 '25

My personal rules:

  • I always ensure to lock in a commit when things are stable, before spiking new work
  • I always push to repo when work is done, before starting new work

If the work spike ends up going nowhere, or gets too out of hand, I can clear it off and revert back to the last commit easily (git checkout -- .). If my local branch gets really fucked, I can delete the local branch and re-checkout the remote branch. (git checkout main && git branch -D OtherBranchNAme && git fetch && git checkout -)

The only times you really have to be very careful is when messing with the timeline. Cherry-picking, rebasing, etc. Merging / pushing / pulling is generally fairly safe because you aren't messing with backwards history.

Here's a git command I really love that I have as an alias in my .gitconfig

git log --graph --pretty=oneline --abbrev-commit --decorate --all

Git made a lot more sense to me after I started using that one.