11/21/2023 0 Comments Git create branch from masterThen Git easily accepts the changes made by the first developer. When two developers create two separate branches from the same repo and while development they edit the same line and one developer merges it back before another. First, we will understand this with a below example. Merge conflicts are one of the tedious tasks we get to resolve while merging our branch to stage or master. Now we only need to push this branch to GitLab and raise an MR regarding only our changes and then we will see that now there are only our commits in the raised MR. These three steps will automatically add our commits to the newly created branch from stage. Just keep in mind that all the commits between these two are required changes. But here is one command using which we can cherry- pick all the commits at one. Suppose we have made more than one commits our previous branch, then it may take a lot of time in cherry-picking all the commits one by one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |