Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1.  
  2. faza 0:
  3.  
  4. git init << inicjalizuje repo w danym katalogu
  5.  
  6. git remote add origin adres:do:repo
  7.  
  8. np
  9.  
  10. git remote add origin https://R0I0P@bitbucket.org/R0I0P/balance.git
  11.  
  12.  
  13. faza 1:
  14.  
  15. git add c:\sciezka\do\pliku\qwe.txt << dodaje do commita
  16.  
  17. git add -A << dodaje wszystkie zmiany (łącznie z usunięciami plików)
  18.  
  19. git rm << usuwa
  20.  
  21.  
  22. faza 2:
  23.  
  24. git commit -m "opis_commita"
  25.  
  26.  
  27. faza 3:
  28.  
  29. git pull origin master
  30.  
  31.  
  32. faza 4:
  33.  
  34. jeśli są konflikty -> merge
  35.  
  36.  
  37. faza 5:
  38.  
  39. git push origin master
  40.  
  41.  
  42. -----
  43.  
  44. przydatne komendy:
  45.  
  46. git status << pokazuje aktualny commit, gdzie są konflikty, niedodane zmiany do commita itd
  47.  
  48.  
  49. git reset (przywracanie wcześniejszej wersji, która jest na repo):
  50.  
  51. http://stackoverflow.com/questions/4114095/revert-to-a-previous-git-commit
  52.  
  53.  
  54.  
  55.  
  56. ls << działa jak dir
  57. cd, cd ..
  58.  
  59. cd D:
  60.  
  61.  
  62. git init ->master ->how to del master?
  63.  
  64.  
  65.  
  66.  
  67. server: 0
  68.  
  69. Ty : 0
  70.  
  71. ja : 0 >> server : ja1
  72.  
  73.  
  74. Ty : Ty1 >> server
  75.  
  76. 0 ja1
  77.  
  78. pull -> ja1
  79.  
  80.  
  81.  
  82.  
  83. server : 0
  84.  
  85. Ty : Ty1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement