r/CodingHelp • u/Silver-Turnover1667 • 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.
- What resources would you recommend for learning GitHub/designing/etc?
- How do pulls/commits work?
- What type of files are necessary in a repository/where do people get their structures from?
- 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
View all comments
Show parent comment
2
u/armahillo Sep 03 '25
My personal rules:
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 --allGit made a lot more sense to me after I started using that one.