20,290
edits
mNo edit summary |
mNo edit summary |
||
Line 90: | Line 90: | ||
To merge another branch into your active branch (e.g. master), use | To merge another branch into your active branch (e.g. master), use | ||
<pre>git merge | <pre>git merge $BRANCH</pre> | ||
in both cases git tries to auto-merge changes. Unfortunately, this is not always possible and results in conflicts. You are responsible to merge those conflicts manually by editing the files shown by git. After changing, you need to mark them as merged with<br> | in both cases git tries to auto-merge changes. Unfortunately, this is not always possible and results in conflicts. You are responsible to merge those conflicts manually by editing the files shown by git. After changing, you need to mark them as merged with<br> | ||
<pre>git add <filename> </pre> | <pre>git add <filename> </pre> | ||
before merging changes, you can also preview them by using | before merging changes, you can also preview them by using | ||
<pre>git diff <source_branch> <target_branch> | <pre>git diff <source_branch> <target_branch> | ||
</pre> | </pre> |