galezie.console.log 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. user@debian:~/testy/galezie$ git init
  2. hint: Using 'master' as the name for the initial branch. This default branch name
  3. hint: is subject to change. To configure the initial branch name to use in all
  4. hint: of your new repositories, which will suppress this warning, call:
  5. hint:
  6. hint: git config --global init.defaultBranch <name>
  7. hint:
  8. hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
  9. hint: 'development'. The just-created branch can be renamed via this command:
  10. hint:
  11. hint: git branch -m <name>
  12. Initialized empty Git repository in /home/user/testy/galezie/.git/
  13. user@debian:~/testy/galezie$ Aby utworzyć nowe repozytorium Git w nowym folderze na git init
  14. ^C
  15. user@debian:~/testy/galezie$ echo "Linia 1 - Główna gałąź" > plik.txt
  16. user@debian:~/testy/galezie$ git add plik.txt
  17. user@debian:~/testy/galezie$ git commit -m "Pierwszy commit na głównej gałęzi"
  18. [master (root-commit) 871c621] Pierwszy commit na głównej gałęzi
  19. Committer: user <user@debian.myguest.virtualbox.org>
  20. Your name and email address were configured automatically based
  21. on your username and hostname. Please check that they are accurate.
  22. You can suppress this message by setting them explicitly:
  23. git config --global user.name "Your Name"
  24. git config --global user.email you@example.com
  25. After doing this, you may fix the identity used for this commit with:
  26. git commit --amend --reset-author
  27. 1 file changed, 1 insertion(+)
  28. create mode 100644 plik.txt
  29. user@debian:~/testy/galezie$ git branch nowa-galaz
  30. user@debian:~/testy/galezie$ git checkout nowa-galaz
  31. Switched to branch 'nowa-galaz'
  32. user@debian:~/testy/galezie$ echo "Linia 2 - Nowa gałąź" >> plik.txt
  33. user@debian:~/testy/galezie$ git add plik.txt
  34. user@debian:~/testy/galezie$ git commit -m "Dodano linię w nowej gałęzi"
  35. [nowa-galaz 6b6b92f] Dodano linię w nowej gałęzi
  36. Committer: user <user@debian.myguest.virtualbox.org>
  37. Your name and email address were configured automatically based
  38. on your username and hostname. Please check that they are accurate.
  39. You can suppress this message by setting them explicitly:
  40. git config --global user.name "Your Name"
  41. git config --global user.email you@example.com
  42. After doing this, you may fix the identity used for this commit with:
  43. git commit --amend --reset-author
  44. 1 file changed, 1 insertion(+)
  45. user@debian:~/testy/galezie$ git checkout main
  46. error: pathspec 'main' did not match any file(s) known to git
  47. user@debian:~/testy/galezie$ echo "Linia 2 - Główna gałąź" >> plik.txt
  48. user@debian:~/testy/galezie$ git add plik.txt
  49. user@debian:~/testy/galezie$ git commit -m "Dodano linię w głównej gałęzi"
  50. [nowa-galaz 54b696d] Dodano linię w głównej gałęzi
  51. Committer: user <user@debian.myguest.virtualbox.org>
  52. Your name and email address were configured automatically based
  53. on your username and hostname. Please check that they are accurate.
  54. You can suppress this message by setting them explicitly:
  55. git config --global user.name "Your Name"
  56. git config --global user.email you@example.com
  57. After doing this, you may fix the identity used for this commit with:
  58. git commit --amend --reset-author
  59. 1 file changed, 1 insertion(+)
  60. user@debian:~/testy/galezie$ git merge nowa-galaz
  61. Already up to date.
  62. user@debian:~/testy/galezie$ nano
  63. .git/ plik.txt
  64. user@debian:~/testy/galezie$ nano plik.txt
  65. user@debian:~/testy/galezie$ git add plik.txt
  66. user@debian:~/testy/galezie$ git commit -m "Rozwiązano konflikt i scalono nową gałąź"
  67. [nowa-galaz 3d41e30] Rozwiązano konflikt i scalono nową gałąź
  68. Committer: user <user@debian.myguest.virtualbox.org>
  69. Your name and email address were configured automatically based
  70. on your username and hostname. Please check that they are accurate.
  71. You can suppress this message by setting them explicitly:
  72. git config --global user.name "Your Name"
  73. git config --global user.email you@example.com
  74. After doing this, you may fix the identity used for this commit with:
  75. git commit --amend --reset-author
  76. 1 file changed, 1 insertion(+), 2 deletions(-)
  77. user@debian:~/testy/galezie$ git log --oneline --graph
  78. * 3d41e30 (HEAD -> nowa-galaz) Rozwiązano konflikt i scalono nową gałąź
  79. * 54b696d Dodano linię w głównej gałęzi
  80. * 6b6b92f Dodano linię w nowej gałęzi
  81. * 871c621 (master) Pierwszy commit na głównej gałęzi
  82. user@debian:~/testy/galezie$ git remote add origin https://gitsr.dmcs.pl/itaz24-1/galezie.git
  83. user@debian:~/testy/galezie$ git push -u origin master
  84. Username for 'https://gitsr.dmcs.pl': itaz24-1
  85. Password for 'https://itaz24-1@gitsr.dmcs.pl':
  86. Enumerating objects: 3, done.
  87. Counting objects: 100% (3/3), done.
  88. Writing objects: 100% (3/3), 274 bytes | 274.00 KiB/s, done.
  89. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
  90. To https://gitsr.dmcs.pl/itaz24-1/galezie.git
  91. * [new branch] master -> master
  92. branch 'master' set up to track 'origin/master'.