SourceTree UI ↔ Git Εντολή
Cheat sheet: τι κουμπί πατάς και τι εντολή τρέχει από κάτω.
| Κουμπί/Ενέργεια στο SourceTree | Πραγματική Git εντολή |
|---|---|
| Pull | git pull |
| Push | git push origin <branch> |
| Fetch | git fetch |
| Commit | git commit -m "..." (μετά από git add) |
| Checkbox στο staged | git add <file> |
| Branch (νέο) | git checkout -b <name> |
| Διπλό κλικ σε branch | git checkout <branch> |
| Merge | git merge <branch> |
| Rebase | git rebase <branch> |
| Stash | git stash |
| Stash Pop | git stash pop |
| Tag | git tag <name> |
| Δεξί κλικ commit → Reset | git reset --soft/mixed/hard <commit> |
| Δεξί κλικ commit → Revert | git revert <commit> |
| Discard σε αρχείο | git checkout -- <file> |
danger
Το Discard σβήνει τις τοπικές σου αλλαγές και δεν αναστρέφεται.