User Tools

Site Tools


project:git_basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:git_basics [2017/07/18 16:47] dpproject:git_basics [2017/07/19 15:54] (current) dp
Line 53: Line 53:
 ''rsync'' je ok način za prebacit repozitorij na drugo računao ''rsync'' je ok način za prebacit repozitorij na drugo računao
  
-''git fetch origin'' (povoci sve što je čovjek napravio u međuvremenu)+''git fetch origin'' s remote repozitirija povuci sve promjene napravljene u međuvremenu (od zadnjeg cloniranja ili fetch-anja)... fetching povuče sve promjene u lokalni repozitorij, ali ih ne merge-a. 
 + 
 +''git pull origin'' will automatically fetch and merge the changes from the remote branch into your current branch 
 + 
 +''git push origin master'' we are telling git to push our changes to the remote repository known to us as origin and commit them to the master branch 
 + 
 +''git remote add IME_DODATNOG_REPOZITORIJA http://git...'' adding additional remote repositories
  
 ''diff'' (pogledaj trenutno stanje u odnosu na master) ''diff'' (pogledaj trenutno stanje u odnosu na master)
Line 85: Line 91:
 ''git add *.txt'' ''git add *.txt''
  
 +''git branch IME_NOVOG_BRANCHA'' create new branch
 +
 +''git checkout IME_NOVOG_BRANCHA'' 
 +
 +''git checkout master'' switch back to the main branch 
 +
 +''git merge IME_NOVOG_BRANCHA'' ... ali i potencijalni konflikti...
  
 ===== Primjer grupnog rada ===== ===== Primjer grupnog rada =====
project/git_basics.1500389265.txt.gz · Last modified: 2017/07/18 16:47 by dp