ruby - Renamed file to change case, now getting a conflict on commit -


I changed some names because I had started splitting my classes, but now I get a conflict error Has been there. How can I fix this?

  CONFLICT (rename / rename): rename "ruby_game.rb" - & gt; Rename "game.rb" head "Ruby_game.rb" in the branch "- ruby_game.rb" "Automatic blemish in" bb755b75896b09a2113c4a6b2a5a60dcf7d3ea2a "failed; Correct the conflicts and then give results.  

Update : I have removed the ruby_game.rb file from the directory on my OS, then I have it from Sublime The saved was typed in the directory under Ruby_game.rb , then git mv ruby_gam. Rb ruby_game.rb . Now it does not allow me to commit due to "unmoded files".

I have read other linked posts, but I am at such a level that a slight deviation throws me. Note that this is my first post and I am just getting the formatting and hang of the protocol, so please please, if I am not following the best practices, then I am pointing correctly in the right way.

when the call is called automatic merge is unsuccessful; Correct the conflict and then reduce the result. This means that he took the contents of the two versions of the file, put the struggle in front of each other in the file and wanted to clean it by filling that file.

I usually do it by hand. If you open the file in Sublime Text, then you (hopefully) will see one or more sections like this:

   gt; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; Master  

On the simplest (most manual) you can get the & lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; Edit the goods between and & gt; & Gt; & Gt; & Gt; & Gt; & Gt; & Gt; To be true - sometimes just removing one of them, sometimes by merging the code & lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; and gt; & Gt; & Gt; lines, save the file, add it again>) and then commit.

I think typing git mergetool can give you a sensual way to do this merge. Since you are on OS X (right?), This can be user friendly.

However, upon failure, I think will work:

  1. Back to the original file in your file (in the OS or terminal) Change the name of ruby_gam rb
  2. type git reset HEAD ruby_game.rb and then git checkout -f ruby_gam. Rb to leave any local changes you made.
  3. Code> git mv -f Ruby_game.rb ruby_game.rb
    • for .
    • mv command is not just for running files, but instead renaming them (renaming and transferring is actually done at the OS level There is a similar type of thing.)
  4. Now git commit -m "naming file"

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -