Last active
July 24, 2016 21:46
Revisions
-
mkczyk revised this gist
Jul 24, 2016 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -145,5 +145,15 @@ _Przed push_ `git rebase -i <SHA commita przed tym, od którego chcemy połączyć>` Zmiana `pick` na `fixup` (w tych, które chcemy połączyć). Zmiana z `pick` na `reword` (w tym, który zostaje - najnowszy) jeśli chcemy zmienić komentarz całego, łączonego commita. #### Tagowanie Etykieta opisana: `git tag -a v0.0.1 -m "First functional version v0.0.1"` Etykieta lekka: `git tag v0.0.1` Wypchnięcie tagów: `git push origin --tags` -
mkczyk revised this gist
Apr 24, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -73,11 +73,11 @@ git merge yourBranch #### Usunięcie ostatniego commita Usunięcie ostatniego: `git reset --hard HEAD~1` Usunięcie ze zdalnego repo: `git push origin HEAD --force` (uważać w zespole) http://stackoverflow.com/a/1338744/2442133 -
mkczyk revised this gist
Apr 24, 2016 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,6 +67,21 @@ git checkout master git merge yourBranch ``` #### Push wszystkich branchy ` git push --all` #### Usunięcie ostatniego commita Usunięcie ostatniego: `git reset --hard HEAD~1` Usunięcie ze zdalnego repo: `git push origin HEAD --force` (uważać w zespole) http://stackoverflow.com/a/1338744/2442133 #### TODO -
mkczyk revised this gist
Apr 16, 2016 . 1 changed file with 4 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -52,6 +52,10 @@ Wypchnięcie brancha o danej nazwie na serwer zdalny. #### Usunięcie brancha Lokalnie: `git branch -d local_branch` Zdalne: `git push origin :nazwa_brancha` #### Scalanie brancha z master (merge) @@ -63,12 +67,6 @@ git checkout master git merge yourBranch ``` #### TODO -
mkczyk revised this gist
Apr 16, 2016 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Wypchnięcie brancha o danej nazwie na serwer zdalny. `git push origin :nazwa_brancha` #### Scalanie brancha z master (merge) https://git-scm.com/book/pl/v1/Ga%C5%82%C4%99zie-Gita-Podstawy-rozga%C5%82%C4%99ziania-i-scalania @@ -63,6 +63,13 @@ git checkout master git merge yourBranch ``` #### Usuwanie brancha Lokalnie: `git branch -d local_branch` Zdalne: `git push origin :remote_branch` #### TODO TODO -
mkczyk revised this gist
Apr 16, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -54,6 +54,14 @@ Wypchnięcie brancha o danej nazwie na serwer zdalny. `git push origin :nazwa_brancha` #### Scalanie (merge) https://git-scm.com/book/pl/v1/Ga%C5%82%C4%99zie-Gita-Podstawy-rozga%C5%82%C4%99ziania-i-scalania ``` git checkout master git merge yourBranch ``` #### TODO -
mkczyk revised this gist
Apr 3, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,6 +37,14 @@ git push origin master lub `git pull` #### Zmiany, które jeszcze nie zostay wypushowane (ang. list Git commits not pushed to the origin yet) `git log origin/master..master` lub `git log <since>..<until>` #### Wypchnięcie brancha `git push origin nazwa_brancha` -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -64,7 +64,7 @@ Gdzie jest wysyłane (push) i pobierane (pull) z serwera. Po sprawdzeniu za pomocą `git remote -v` możemy usunąć: `git remote remove origin` Teraz można dodać: `git remote add origin https://github.com/user/repo.git` Lub jeśli łączymy się przez SSH: -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,7 +34,7 @@ git push origin master #### Pobranie zmian z remote `git fetch` lub `git pull` #### Wypchnięcie brancha -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 31 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +1,20 @@ Przydatne polecenia GIT ================= * [Przydatne polecenia GIT](#przydatne-polecenia-git) * [Często używane](#często-używane) * [Commit i push](#commit-i-push) * [Zmiana aktualnego brancha](#zmiana-aktualnego-brancha) * [Pobranie zmian z remote](#pobranie-zmian-z-remote) * [Wypchnięcie brancha](#wypchnięcie-brancha) * [Usunięcie brancha](#usunięcie-brancha) * [TODO](#todo) * [Rzadziej używane](#rzadziej-używane) * [Sprawdzenie remote](#sprawdzenie-remote) * [Zmiana remote](#zmiana-remote) * [Zmiana nazwy brancha (na remote)](#zmiana-nazwy-brancha-na-remote) * [Usunięcie commita](#usunięcie-commita) * [Łączenie commitów](#Łączenie-commitów) ## Często używane @@ -25,9 +29,23 @@ git push origin master #### Zmiana aktualnego brancha `git checkout nazwa_brancha` #### Pobranie zmian z remote `git fetch` lub `git pull` #### Wypchnięcie brancha `git push origin nazwa_brancha` Wypchnięcie brancha o danej nazwie na serwer zdalny. #### Usunięcie brancha `git push origin :nazwa_brancha` #### TODO -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Przydatne polecenia GIT * [Rzadziej używane](#rzadziej-używane) * [Sprawdzenie remote](#sprawdzenie-remote) * [Zmiana remote](#zmiana-remote) * [Zmiana nazwy brancha (na remote)](#zmiana-nazwy-brancha-na-remote) * [Usunięcie commita](#usunięcie-commita) * [Łączenie commitów](#Łączenie-commitów) @@ -56,7 +56,7 @@ https://help.github.com/articles/adding-a-remote/ [Youtube](https://www.youtube.com/watch?v=EsYHCO_0Xm0) #### Zmiana nazwy brancha (na remote) Najpierw pobrać commity z remote: -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Przydatne polecenia GIT ================= * [Często używane](#często-używane) -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,6 @@ Spis treści ================= * [Często używane](#często-używane) * [Commit i push](#commit-i-push) * [Zmiana aktualnego brancha](#zmiana-aktualnego-brancha) -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 12 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,19 @@ Spis treści ================= Table of Contents ================= * [Często używane](#często-używane) * [Commit i push](#commit-i-push) * [Zmiana aktualnego brancha](#zmiana-aktualnego-brancha) * [TODO](#todo) * [Rzadziej używane](#rzadziej-używane) * [Sprawdzenie remote](#sprawdzenie-remote) * [Zmiana remote](#zmiana-remote) * [Zmiana nazwy brancha na remote](#zmiana-nazwy-brancha-na-remote) * [Usunięcie commita](#usunięcie-commita) * [Łączenie commitów](#Łączenie-commitów) ## Często używane -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,18 @@ Spis treści ================= * [Często używane](#często-używane) * [Commit i push](#commit-i-push) * [Zmiana aktualnego brancha](#zmiana-aktualnego-brancha) * [TODO](#todo) * [Rzadziej używane](#rzadziej-używane) * [Sprawdzenie remote](#sprawdzenie-remote) * [Zmiana remote](#zmiana-remote) * [Zmiana nazwy brancha na remote](#zmiana-nazwy-brancha-na-remote) * [Usunięcie commita](#usunięcie-commita) * [Łączenie commitów](#Łączenie-commitów) ## Często używane #### Commit i push -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -38,6 +38,7 @@ Teraz można dodać: Lub jeśli łączymy się przez SSH: `git remote add origin [email protected]:user/repo.git` https://help.github.com/articles/adding-a-remote/ [Youtube](https://www.youtube.com/watch?v=EsYHCO_0Xm0) -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Teraz można dodać: `git remote add origin https://github.com/user/repo.git` Lub jeśli łączymy się przez SSH: `git remote add origin [email protected]:user/repo.git` [Youtube](https://www.youtube.com/watch?v=EsYHCO_0Xm0) -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 22 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,6 +21,26 @@ TODO ## Rzadziej używane #### Sprawdzenie remote Gdzie jest wysyłane (push) i pobierane (pull) z serwera. `git remote -v` #### Zmiana remote Po sprawdzeniu za pomocą `git remote -v` możemy usunąć: `git remote remove origin` Teraz można dodać: `git remote add origin https://github.com/user/repo.git` Lub jeśli łączymy się przez SSH: `git remote add origin [email protected]:user/repo.git' [Youtube](https://www.youtube.com/watch?v=EsYHCO_0Xm0) #### Zmiana nazwy brancha na remote Najpierw pobrać commity z remote: @@ -47,6 +67,8 @@ Jeśli nie zatwierdziło, to: `git rebase --continue` Jeśli chcemy anulować, to: `git rebase --abort` [Youtube](https://www.youtube.com/watch?v=B5Ss4xNYWDY) #### Łączenie commitów _Przed push_ -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,16 +26,16 @@ TODO Najpierw pobrać commity z remote: ``` git checkout old_branch git pull ``` Zmiana nazwy lokalnie, usunięcie i dodanie pod nową nazwą: ``` git branch -m old_branch new_branch git push origin new_branch git push origin :old_branch ``` #### Usunięcie commita -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 9 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## Często używane #### Commit i push ``` git add . @@ -9,15 +9,19 @@ git pull git push origin master ``` #### Zmiana aktualnego brancha ``` git checkout nazwa_brancha ``` #### TODO TODO ## Rzadziej używane #### Zmiana nazwy brancha na remote Najpierw pobrać commity z remote: @@ -34,7 +38,7 @@ git push origin new git push origin :old ``` #### Usunięcie commita `git rebase -i <SHA commita przed tym, który chcemy skasować>` I usuwamy linię z commitem. @@ -43,14 +47,12 @@ Jeśli nie zatwierdziło, to: `git rebase --continue` Jeśli chcemy anulować, to: `git rebase --abort` #### Łączenie commitów _Przed push_ `git rebase -i <SHA commita przed tym, od którego chcemy połączyć>` Zmiana `pick` na `fixup` (w tych, które chcemy połączyć). Zmiana z `pick` na `reword` (w tym, który zostaje - najnowszy) jeśli chcemy zmienić komentarz całego, łączonego commita. -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Często używane ### Commit i push -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,11 @@ ## Czsto używane ### Commit i push ``` git add . git commit -am "msg" git pull git push origin master ``` @@ -12,6 +15,8 @@ git push origin master git checkout nazwa_brancha ``` ## Rzadziej używane ### Zmiana nazwy brancha na remote Najpierw pobrać commity z remote: @@ -38,6 +43,13 @@ Jeśli nie zatwierdziło, to: `git rebase --continue` Jeśli chcemy anulować, to: `git rebase --abort` ### Łczenie commitów _Przed push_ `git rebase -i <SHA commita przed tym, od którego chcemy połączyć>` Zmiana `pick` na `fixup` (w tych, które chcemy połączyć). Zmiana z `pick` na `reword` (w tym, który zostaje - najnowszy) jeśli chcemy zmienić komentarz całego, łączonego commita. ### TODO TODO -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,7 +21,7 @@ git checkout old git pull ``` Zmiana nazwy lokalnie, usunięcie i dodanie pod nową nazwą: ``` git branch -m old new -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ git push origin :old ### Usunięcie commita `git rebase -i <SHA commita przed tym, który chcemy skasować>` I usuwamy linię z commitem. Jeśli nie zatwierdziło, to: `git rebase --continue` -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,6 +29,15 @@ git push origin new git push origin :old ``` ### Usunięcie commita `git rebase -i <SHA commita przed tym, który chcemy skasować>` I usuwamy linię z commitem. Jeśli nie zatwierdziło, to: `git rebase --continue` Jeśli chcemy anulować, to: `git rebase --abort` ### TODO TODO -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,7 +29,7 @@ git push origin new git push origin :old ``` ### TODO TODO -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,3 +29,7 @@ git push origin new git push origin :old ``` ### TODO -
mkczyk revised this gist
Mar 27, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +1,20 @@ ### Commit ``` git add . git commit -am "msg" git push origin master ``` ### Zmiana aktualnego brancha ``` git checkout nazwa_brancha ``` ### Zmiana nazwy brancha na remote Najpierw pobrać commity z remote: ``` git checkout old -
mkczyk renamed this gist
Mar 27, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mkczyk created this gist
Mar 27, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ ## Commit ``` git add . git commit -am "msg" git push origin master ``` ## Zmiana aktualnego brancha ``` git checkout nazwa_brancha ``` ## Zmiana nazwy brancha na remote Najpierw pobrać commity z remote ``` git checkout old git pull ``` Zmiana nazwy lokalnie, usunicie i dodanie pod now nazwą: ``` git branch -m old new git push origin new git push origin :old ```