Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- faza 0:
- git init << inicjalizuje repo w danym katalogu
- git remote add origin adres:do:repo
- np
- git remote add origin https://R0I0P@bitbucket.org/R0I0P/balance.git
- faza 1:
- git add c:\sciezka\do\pliku\qwe.txt << dodaje do commita
- git add -A << dodaje wszystkie zmiany (łącznie z usunięciami plików)
- git rm << usuwa
- faza 2:
- git commit -m "opis_commita"
- faza 3:
- git pull origin master
- faza 4:
- jeśli są konflikty -> merge
- faza 5:
- git push origin master
- -----
- przydatne komendy:
- git status << pokazuje aktualny commit, gdzie są konflikty, niedodane zmiany do commita itd
- git reset (przywracanie wcześniejszej wersji, która jest na repo):
- http://stackoverflow.com/questions/4114095/revert-to-a-previous-git-commit
- ls << działa jak dir
- cd, cd ..
- cd D:
- git init ->master ->how to del master?
- server: 0
- Ty : 0
- ja : 0 >> server : ja1
- Ty : Ty1 >> server
- 0 ja1
- pull -> ja1
- server : 0
- Ty : Ty1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement