git - How would working directory look like in tree diagram? -
i last commit exists in master branch this:
$ git pull origin master then make changes in it. noted that, in same time (whenever working on project), co-worker has pushed new commits master branch.
so have rebase changes first , push master branch. here commands:
git pull origin master --rebase git push origin master now want know:
how whole process in git tree diagram?
also, can write
git pull origin master --rebaseother way? mean--rebaseshorten$ git checkout workingdirecotry,$ git rebase master?
after first pull, history like: 
after make changes, local branch moves on: 
meanwhile, remote repo has been updated co-worker: 
then run git pull origin master --rebase, equivalent git fetch origin master && git rebase origin/master.
as result of git fetch origin master: 
and git rebase origin/master. d , e transplanted old base c onto new base n. master moves old head e new head e'. 
Comments
Post a Comment