EMAT30008: Scientific Computing

Summary of git commands

These are some commonly used git commands. Typing git <command> --help in the terminal will provide more information about how to use the command <command>.

CommandDescription
statusChecks the status of a repository
addAdd files/changes to the repository
commit -m "message"Commit (save) the current state of the directory with a message to summarise the changes
pushUpload a repository to a git server (eg GitHub)
pullDownload a repository from a git server
cloneCreate a local copy of an online repository on a computer
logSee the history of commits
diff <file>Compare the current version of a file to its version in the last commit
blame <file>See a history of who edited a file