Home > other >  Git branch switch to meet a lot of almost every time after the modified files is no modifications
Git branch switch to meet a lot of almost every time after the modified files is no modifications

Time:09-23

The git version


State the reason for the problem:
1, often will encounter a lot of pull down the code to a local show that the modified file, found no modify the content, the reason should be a newline conversion issues

2, before switching branches all the code I submit a remote repository, and has set up a push in my operation after another branch in switch back, side will show a lot of state has been modified, but more do not make any changes to the file





The second problem is basically has 9 of 10 will appear, occurrence probability of high let a person very has no language, need to reset every time - hard, such frequent operation really annoying
The frequency of the occurrence is low, the first question is 10 times in time, can also endure

Although all say set the three properties



But after the three attribute set has caused problems, set the three properties is to convert a newline, don't let the git because division are operating, and after setting this every time you must must first before you push the code updates, or push will not come up, even if updated, when you push others may when you push and push the code, this time can't push up, update is submitted to the update fails, must manually deal with these problems




With git before didn't update this version 1.18 was almost rarely appears the question, solving, how to deal with, each time the key reset hard is useless, must be reset before hard several versions, but is reset before the hard version also reset many times not to drop, various operations, sometimes reset hard not to drop, can only be forced to submit these files

CodePudding user response:

Is expected to be within the team, should be consistent with the Settings,

CodePudding user response:

Reduction to version 1.18, reinstall, push up the latest code, notify the other personnel unified pull once,
  • Related