-
Couldn't load subscription status.
- Fork 3
mygit
stanislawbartkowski edited this page Jul 9, 2021
·
5 revisions
| Git command | Description | Sample |
|---|---|---|
| git add (dir) | Add files into staging/cache space | git add . --all |
| git reset | Undo git add command | |
| git status | Current status of local repository | |
| git commit -m "text" | Commits changes in cache/staging area | |
| git push | Pushes commit data into remote repository |
| Git command | Description | Sample |
|---|---|---|
| git branch | Current branch | |
| git branch -a | All branches | |
| git checkout /branch/ | Switch to another branch | git checkout 299 |
| git branch -D /branch name/ | Delete local branch |