Skip to content

Instantly share code, notes, and snippets.

@MarcoMorawec
Last active January 23, 2024 16:05
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save MarcoMorawec/6573846 to your computer and use it in GitHub Desktop.
Save MarcoMorawec/6573846 to your computer and use it in GitHub Desktop.

Marco's Powerful Git Commands (standard)

  • git add --all : add everything that has been changed to the git
  • git status : tell me about the changes on the git repo
  • git commit -am "omg cats" : make a commit, with a note of "omg cats"
  • git push origin master : push the changes up to github
  • git push heroku master : push the changes up to heroku (the web environment). This is aka deploying.

To collaborate with each other:

  • git clone <copy URL copied from Github> : clone the folder from github onto your computer

  • git pull origin master : pull the latest changes down from github

More useful commands (extention)

  • git diff : show me all the changes that I have made, but haven't snapshotted yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment