Last active
December 14, 2015 14:48
-
-
Save monicao/5102729 to your computer and use it in GitHub Desktop.
Git Cheat Sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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