Here is my scenario:
I am working on fixing errors in file1the local branch. My colleague is in his own local branch, merging file1in file2in the refactor. He finishes his work and again merges with the owner and pushes. Now file1no longer exists in HEAD.
file1
file2
When I try and try to merge my changes file1back to master, what will happen? Is git smart enough to account for this, or will I have to manually merge my changes?
First, you do not merge files; you merge revisions (or rather development lines).
-, git , , , file2 file1, git file2. , "CONFLICT (/)" ( ), .
.... git mv file1 file2 git ? , ... , , 1. . git TIAS , .
git mv file1 file2
Source: https://habr.com/ru/post/1757847/More articles:ASP.NET MVC 2 Создать модель с помощью POST - validationReturn random rows from mysql database without using rand () - phpThe operator '=' is not defined for types Integer and IQueryable (Of Integer) '- vb.netiTextSharp - How to enter an image (PNG) from a project resource? - vb.netComparative Websites - How Do They Work? - xmlPHP. Хорошая практика применения многоуровневой авторизации пользователей PHP. - phpDeclarations and rules for initializing C ++ variables - c ++How to break regular comments into paragraphs, leaving StyleCop happy? - commentsHow to implement some if-then logic with JSF and Facelets? - javaWhere are the order IDs indicated? - c #All Articles