Resolving Conflict

8 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€46.70
List Price:  €65.39
You save:  €18.68
£39.94
List Price:  £55.92
You save:  £15.98
CA$68.57
List Price:  CA$96.01
You save:  CA$27.43
A$76.53
List Price:  A$107.15
You save:  A$30.62
S$67.94
List Price:  S$95.13
You save:  S$27.18
HK$390.79
List Price:  HK$547.14
You save:  HK$156.34
CHF 45.61
List Price:  CHF 63.86
You save:  CHF 18.24
NOK kr553.82
List Price:  NOK kr775.40
You save:  NOK kr221.57
DKK kr348.39
List Price:  DKK kr487.78
You save:  DKK kr139.38
NZ$84.29
List Price:  NZ$118.01
You save:  NZ$33.72
د.إ183.60
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,485.75
List Price:  ৳7,680.49
You save:  ৳2,194.74
₹4,172.64
List Price:  ₹5,842.03
You save:  ₹1,669.38
RM237.74
List Price:  RM332.86
You save:  RM95.11
₦61,737.65
List Price:  ₦86,437.65
You save:  ₦24,700
₨13,922.03
List Price:  ₨19,491.96
You save:  ₨5,569.92
฿1,847.10
List Price:  ฿2,586.09
You save:  ฿738.99
₺1,618.04
List Price:  ₺2,265.39
You save:  ₺647.34
B$259.65
List Price:  B$363.53
You save:  B$103.88
R930.41
List Price:  R1,302.64
You save:  R372.23
Лв91.35
List Price:  Лв127.90
You save:  Лв36.55
₩68,760.70
List Price:  ₩96,270.48
You save:  ₩27,509.78
₪187.33
List Price:  ₪262.29
You save:  ₪74.95
₱2,881.22
List Price:  ₱4,033.94
You save:  ₱1,152.71
¥7,761.78
List Price:  ¥10,867.12
You save:  ¥3,105.33
MX$847.89
List Price:  MX$1,187.12
You save:  MX$339.22
QR182.08
List Price:  QR254.93
You save:  QR72.84
P710.02
List Price:  P994.08
You save:  P284.06
KSh6,685.83
List Price:  KSh9,360.69
You save:  KSh2,674.86
E£2,398.89
List Price:  E£3,358.63
You save:  E£959.74
ብር2,859.67
List Price:  ብር4,003.77
You save:  ብር1,144.10
Kz41,816.63
List Price:  Kz58,546.63
You save:  Kz16,730
CLP$48,009.39
List Price:  CLP$67,216.99
You save:  CLP$19,207.60
CN¥361.91
List Price:  CN¥506.70
You save:  CN¥144.79
RD$2,909.49
List Price:  RD$4,073.53
You save:  RD$1,164.03
DA6,727
List Price:  DA9,418.34
You save:  DA2,691.34
FJ$113.07
List Price:  FJ$158.31
You save:  FJ$45.24
Q388.52
List Price:  Q543.96
You save:  Q155.44
GY$10,463.89
List Price:  GY$14,650.29
You save:  GY$4,186.39
ISK kr7,010.59
List Price:  ISK kr9,815.39
You save:  ISK kr2,804.80
DH505.48
List Price:  DH707.71
You save:  DH202.23
L884.07
List Price:  L1,237.78
You save:  L353.70
ден2,875.01
List Price:  ден4,025.24
You save:  ден1,150.23
MOP$402.80
List Price:  MOP$563.96
You save:  MOP$161.15
N$931.61
List Price:  N$1,304.33
You save:  N$372.72
C$1,835.88
List Price:  C$2,570.38
You save:  C$734.50
रु6,711.95
List Price:  रु9,397.27
You save:  रु2,685.31
S/188.15
List Price:  S/263.43
You save:  S/75.27
K192.92
List Price:  K270.11
You save:  K77.18
SAR187.48
List Price:  SAR262.49
You save:  SAR75.01
ZK1,338.41
List Price:  ZK1,873.89
You save:  ZK535.47
L232.39
List Price:  L325.37
You save:  L92.97
Kč1,173.84
List Price:  Kč1,643.47
You save:  Kč469.63
Ft18,183.27
List Price:  Ft25,458.03
You save:  Ft7,274.76
SEK kr546.32
List Price:  SEK kr764.90
You save:  SEK kr218.57
ARS$43,802.69
List Price:  ARS$61,327.27
You save:  ARS$17,524.58
Bs345.39
List Price:  Bs483.57
You save:  Bs138.18
COP$195,145.11
List Price:  COP$273,218.78
You save:  COP$78,073.66
₡25,506.16
List Price:  ₡35,710.66
You save:  ₡10,204.50
L1,238.25
List Price:  L1,733.65
You save:  L495.39
₲374,580.54
List Price:  ₲524,442.73
You save:  ₲149,862.19
$U1,916.38
List Price:  $U2,683.09
You save:  $U766.70
zł202.30
List Price:  zł283.24
You save:  zł80.93
Already have an account? Log In

Transcript

Okay, at this video we'll talk about how to solve that conflict. Why it changes from one branch to another. So that branches you are trying to mesh them. Each mesh has some changes made on the same parts, the same file to be able to figure out. Usually it's more tricky, for example or mesh. And the developer, for example, you have one file where you have some methods which relate to a project you're working on Sample sets, place a data file and someone else decides that this method is not very useful as he just deleted and put on the same spot.

Another method might be better. And we actually like change in the same file on the same line. And there are a lot of methods of how to prevent this kind of issues. For example, you can have where it's simple files where you have two methods instead of long file. But again, sometimes these problems are created and you need to figure out how to solve them. And when such sedation saturation of course, it's a joke.

14 Years before the match, and it's like your inability to solve this complex manually before actually broken code to go into it. So it's pretty useful and use make some changes on the file, he sees this comment and one of the greatest things of getting in process that the to the familiar aided stage comment for petrol or soul conscious soul so not very unusual. When you encounter mesh commits, you can run get status commands, and it will show you which files need to be solved. And for example, like we have the branches branches have bugs branches have same file and the change in code, the same last verses file and you fly message to that branch master mustard, we have some medicines and modified files. So you should now understand you should have a big project with a lot of files you will be able to understand which files are actually creating confidence.

The confidence can be pretty key there because if you push some changes via flow live for quests, and it will show you which files have conflicts inside you'll be able to there's so many Okay, so how conflicts are presented. When he encounters conflict during image. He will edit file. And we'll show you by visual indicators how file looks on both versions in the same file in the same place. So it's not plain defendable, but when you generate the mesh content, you will actually see how how the file changes. So we can delete this.

Yeah, this is one line, this is another line. This is third line that will display a place at a file, way path. It's pretty helpful to search because you can like console was half as bad Sometimes this month just to be able to catch plays pretty quickly. Where actually comes in, sometimes you cannot resolve conflicts because, for example, if you have two branches and each branch you help file life is author generated blog. For example, He says that if you put some useful information into a log file and when you're trying to merge both branches, you will not be able to merge two different blocks. And he actually doesn't do this because he walks separate the team.

So it's better for example, if you can, those kind of problems, you made it as your lock file, ignore. So the pieces will skip changes on this file because they will not be able to to merge conflicts, especially when it walks from different environments or different versions. So, here we count example of how my file is formatted by get merge is. So I had some numbers here, so you need to subset it better. So on the first line, detailed content that's not affected by mesh components. And we have power.

Lead gen monitor your choices. It is from branch Master, and second line. It's conflicts that have as much to change. Then we have another separator, and it's also a second one. This causes conflict. You can see it says From feature branch and it this is aligned that completely.

So you may need to pick a lot of this lives and make some changes to your bolt in order to solve the conflict. And for sure Marcus, notice, like usually the content before this market is very soon branch and the first author is the merchant page. And once you have defined sections, you can go and fix it. And when you read it to finish your merge, you need to save your file and add it to your staging environment and then commit them to your studio. So when you did this mesh complete and committed people know that Complete the file actually not completed. And you need to know that sometimes it's okay to have mesh conflicts and all that will appear on the if you have to re emerge this password nurse would invoke because this has forwards your sister should be on the same on the same digital line and if you have a make that urgent between the branches fast forward just to see if it's enough of this video and in the next video we'll talk more about actually generate so much coming and generate so much

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.