LOL. Yeah, pretty true.
git fetch origin
git reset –hard origin/master
I’ve known this one for a while, but worthwhile to write it down as a way to reset branch state. This can be especially important if you’ve had to do a few rebases in the past and the current history doesn’t match commit IDs with the new (origin) history.
git clean -f -d –dry-run
Remove unstaged files with -f, also directories with -d. Preview the process before you do it with –dry-run.
Life and Code is a learn-to-code blog written with journalists in mind (but useful to anyone who wants to learn).
By far the most popular items on Life and Code are these two:
These are the other Greatest Hits.
- Every time you feel like giving up, watch this first.
- Four Tests for Startups — I don’t take on any project unless they pass these four tests.
- And now a moment of reverent silence to begin our Daily Hour of Code. Take two.
- In Praise of Fluff – an essay on what cat pictures and celebrity news add to journalism.
- If You’re a Busy Person and Want To Learn to Program, How Far Can You Get in 30 Days?
- The Role of Faith in Learning Something New
- It Takes About Six Weeks for Programming To Get Fun
- Choosing an entry point when you want to learn to program
- Startups for Journalists
- Why am I learning to code? Because a lot of things piss me off.
- Paying a developer money to build something for you? Write a spec. No, seriously, write a spec.
- Lisa’s Guide to Boston (in case you come for a conference)
- Programming, Journalism, and Bullshit — on how stupid, sexist stereotypes about programmers hold you and everybody else back.
- Learning to Program for the Web: Starting from Scratch
Public key goes in ‘authorized_keys’ in the server and the private key goes into ‘id_rsa’ on the client machine.