Git cheatsheet
(updated )Commands
| Command | Description |
|---|---|
git init |
Initializes/creates a new repository |
git clone |
Clone a repository into current working directory |
git status |
View changes since last commit |
git status -u |
View untracked files, expanding subdirectories |
git add <filename> |
Add file to commit |
git commit -m "message describing commit" |
Skip editor, directly adding commit message |
git commit -a |
Commit all edits |
git push origin master |
send master branch to remote repository |
git pull |
Update local repository with master branch |