Ponieważ czasami muszę użyć git-a z linii poleceń i zazwyczaj zapominam jak to się robi więc przygotowałem małą ściągę:
workdir - (git add) -> Index - (git commit) -> HEAD - (git push) -> Remote repo
git checkout
git clone <path_to_repository>
git initialize repo
git init
git add and commit
git add *
git add <nazwa_pliku>
git commit -m "Tekst do wpisania przy commit"
git push to remote repo
git push origin master
git direct to remote repo
git remote add origin <server>
git update and merge
git pull
git marge <branch>
git diff <source> <target>
git replace changes
git checkout -- <filename>
git fetch origin
git feth reset --hard origin/master
git branch create/switch/delete
git checkout -b <branch_name>
git checkout master
git branch -d <branch_name>
git log
git log
git log --author=<author>
git log --name-status
Brak komentarzy:
Prześlij komentarz