Skip to content

Instantly share code, notes, and snippets.

@monicao
Last active December 14, 2015 14:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save monicao/5102729 to your computer and use it in GitHub Desktop.
Save monicao/5102729 to your computer and use it in GitHub Desktop.
Git Cheat Sheet
cd ~/Documents/resume
# if you are using your computer
git config --global user.name "Monica Olinescu"
git config --global user.email "monica.olinescu@gmail.com"
# if you are the imacs
cd ~/Documents/resume
git config user.name "Monica Olinescu"
git config user.email "monica.olinescu@gmail.com"
git init # tell git to track changes in the current folder
git status # look at the files
git add . # add all the files and folders in the current folder to git
git status # look at the files again
git commit -m "Your commit message goes here" # Commit your changes LOCALLY
# Now go to github and create a repository called: resume
# Follow the instructions on github to push your LOCAL changes to github
# The instructions called "Push your existing repository to Github"
# Cloning an existing repository
cd ~/Documents/
git clone https://github.com/bitmakerlabs/awesome.git
# Pulling other developers' changes from Github
git pull origin master
# Make your changes to index.html
# Pushing your changes to Github
git add .
git commit -m "My new changes"
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment