mirha masala.

Learn Enough Git to Be Dangerous

An Introduction to Version Control with Git

Michael Hartl

Find this book

Note that, as with addresses on the World Wide Web, this [/] is a slash, not a backslash (a common confusion humorously referenced in the xkcd comic strip Trade expert.

Although I know the basics of Git well, I still like reading tutorials like these. They round out my existing hands-on knowledge, and there’s always something new I learn.

New commands I learned

  • git commit -am to both stage and commit changes with a message
  • git log -p to show both the commit messages and full diffs
  • git diff –staged to see the difference between staged changes and the previous version of the repo
  • git checkout -f to force checkout, discarding changes

Stack Overflow question I followed

Difference between git add -A and git add .

Small talk topic I picked up

Linus Torvalds, the creator of Linux, also developed Git.