Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GIT CHEAT SHEET
- git config --list - Ispiši sve konfiguracijske ključeve i vrijednosti
- git config --global <key> <value> - Postavi globalni ključ na drugu vrijednost
- git status - Provjeri status repozitorija
- git add [file|folder] (--all) - Dodaj izmjene u staging (sa --all dodaj sve)
- git commit -m “[message]” - Commita izmjene uz poruku
- git checkout -b [branch] - Kreira novi branch i ulazi u njega
- git checkout [branch] - Ulazi u branch
- git branch -D [branch] - Briše branch
- git push [remote] [branch] - Pusha promjene s lokalnog brancha na remote branch. Dodaj --force ako želiš pregaziti remote sa svojim branchem.
- git pull [remote] [branch] - Pulla promjene s lokalnog brancha na remote branch. Dodaj --force ako želiš pregaziti svoj branch sa remote branchem.
- git log - Prikazuje commit history
- git log --all --decorate --oneline --graph - Prikazuje graf s commitovima
- Ako napraviš glupost, idi na http://ohshitgit.com/.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement