mygit - stanislawbartkowski/wikis GitHub Wiki
My Git, useful git commands
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 |
Branches
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 |