r/StackoverReddit • • Jul 10 '24

Question Advice for GitHub

I have a web application to make this week as the first step in the recruitment process for a company. One of the requirements is to use GitHub so that they will be able to see my project and also my commits.

Should I just commit to the main branch, then, or should I create a different one? I was also thinking about making a branch for each individual functionality and making PRs and then merging into the branch with the final product, but I thought maybe this would be too much since it's just me working on the project.

What do you advice me to do?

4 Upvotes

14 comments sorted by

View all comments

Show parent comment

4

u/murrayju Jul 10 '24

Having been on the other side of this (as the hiring manager), I don’t care about your branch names or commits. I only care to see your finished solution to the problem, and GitHub just happens to be a convenient way to share your code and facilitate a code review.

Branches and pull requests are really only useful for collaboration, or as part of a CI build/release process for an established product. Making PRs for yourself as part of a toy exercise is just a waste of time.

Unless they specifically asked to see your iterative process in the form of many commits, my advice would be to squash your work and share a single commit on the main branch.