Answer the question
In order to leave comments, you need to log in
What happens when you merge branches (git merge)?
I work locally via GIT GUI or SourceTree . There was originally a master branch . I created a development branch and I'm working in it. Naturally, I already made several commits, deleted folders or enclosed them in .gitignore . Then I did a merge ( merge ) development into master . I send it to Bitbucket, from there I take it ( git clone ) to the VPS - then I see those folders that are not locally in the development branch . It turns out, firstly, git clone took the master branch , and secondly, mergedoes not mean that the branch becomes completely identical to the other? Explain, pliz, if there are branches incl. and different files, what happens to them when merge? And when switching from one vertex to another, if there are different files, then the files in Explorer will change visually, or what? ..
Answer the question
In order to leave comments, you need to log in
Imagine you have two trucks. At first they were equally empty, then you loaded a couple of sandbags into one truck and a bag of coal into another.
Conventionally, the first truck is master, the second is dev.
git checkout master
git merge dev
<<<<HEAD
один контент
<<< commit1111
другой контент
<<<end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question