Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save carlevans719/878191c01f8a7ba74903edda638f5be6 to your computer and use it in GitHub Desktop.
Save carlevans719/878191c01f8a7ba74903edda638f5be6 to your computer and use it in GitHub Desktop.
Git Cheatsheet
*Git* is a SCM (Source Control Management) - you use it to make source code available to you and others from any computer. It also makes it easier to collaborate, handling "merges" (when two people try to change the same file).
*GitHub* is an online store where you can keep repositories (it also does other stuff, like issue tracking)
*Staging* (`git add`) is when you mark file(s) / folder(s) as being ready to commit
*Commititing* (`git commit`) is when you save the state of certain files/folders (which have been "staged") to the repository
*Pushing* (`git push`) is when you send up your local "commits" to the remote repository (the one stored on GitHub / other)
*Pulling* (`git pull`) is when you bring in commits from the remote repository to your local one
*Cloning* (`git clone`) is when you bring down a whole repo from GitHub to your computer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment