git command cheat sheet
| usage | command |
|---|---|
| discard all uncommitted changes | git restore . |
| override local branch with remote | git fetch origin <branch> && git reset --hard origin/<branch> |
git command cheat sheet | usage | command |
|---|---|
| discard all uncommitted changes | git restore . |
| override local branch with remote | git fetch origin <branch> && git reset --hard origin/<branch> |