git cheat sheet
- Basic workflow
- Create a repo online with a README
- Upload files from local host
git clone [url]
to create the local git repogit add <filename>
for a single filegit add -A
for adding everythinggit commit -m "[Insert a brief summary of your changes]"
to commitgit status
will show files “staged for commit.git pull
for the most up to date version of the repositorygit push origin master
to upload new files to the remote repository
- Other resources
Last modified: 2017-12-31