git stuff 

Something I learned in my ~3rd year of using git that has saved my ass many times: `git commit -am [commit message]` should be avoided. You inevitably end up auto-adding files you shouldn't, and the CLI encourages short commit messages.

Significantly better to do `git commit -v -a`. This pulls up your default editor and shows you the diff of the changes you are about to commit. You can see if any unwanted files/changes are about to be committed, and easily enter a verbose description.

Follow

git stuff 

@darius my favorite guide to writing git commit messages: chris.beams.io/posts/git-commi

git stuff 

@stelepami I've never seen this before, this is great! It's exactly how I was taught to write commits

git stuff 

@darius It's my favorite. It probably bugged me too much at my last job when the norm was just to write everything On the first line instead of using a header statement.

git stuff 

@stelepami honestly I do not think that is being overly picky

git stuff 

@darius I decided it was not worth fighting for. They also preferred merging instead of rebasing; I tried to convert people there but it wasnt intuitive for the folks who preferred to use the Intellij plusin to the command line. Eh. Contract's over.

git stuff 

@stelepami I think I would probably not try to convert people to rebasing while on a contract. Good commit messages are something even a beginner on day 1 of using git can do, and there's not really a failure state that can't be undone with --amend. Meanwhile, merge vs rebase is a pretty technical topic that can have unsafe failure states.

git stuff 

@darius There was potential to convert to full time which didn't pan out, but I was thinking long term.

git stuff 

@stelepami @darius, I'm still raw from having the third-year CS undergrads dismissing the requisite "CS & Society (Ethics)" course and the writing workshops I ran as a TA.

"I can write code, that should be enough."

Sign in to participate in the conversation
MSP Social.net

A community centered on the Twin Cities of Minneapolis and St. Paul, Minnesota, and their surrounding region. Predominantly queer with a focus on urban and social justice issues.