Jump to content
  • 0
Sign in to follow this  
ToiletMaster

Git pull problem again ._.

Question

 

error: Your local changes to '3rdparty/libconfig/libconfig.c' would be overwritten by merge.  Aborting.Please, commit your changes or stash them before you can merge.

 

Hi there, i'm currently facing issue on git pull.

 

I've never changed the 3rd party/libconfig/libconfig.c before. So i'm not sure what to expect here.

 

What can do i to upadte the files?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

have you tried...

 

git commit -am "message"

 

if that doesn't work and since you said you didn't change anything with that file you can also try...

 

git checkout 3rd party/libconfig/libconfig.c (fetches an unchanged copy from hercules repo)

or

git add 3rd party/libconfig/libconfig.c (adds the file to the track and makes it safe to merge?)

 

I'm no git expert, so I could be wrong.

Share this post


Link to post
Share on other sites
  • 0

If you are sure that file hasn't been changed you can either revert the local changes and try to pull or just commit that and pull anyways.

 

Be sure to have a backup before doing anything, just in case you break something.

 

Or you can use git diff (just that, in the console) to see what is changed on the file. More info: http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository

 

Hope this helps, nobody here is git expert but we'll try to do whatever we can for helping you :meow:

Share this post


Link to post
Share on other sites
  • 0

have you tried...

 

git commit -am "message"

 

if that doesn't work and since you said you didn't change anything with that file you can also try...

 

git checkout 3rd party/libconfig/libconfig.c (fetches an unchanged copy from hercules repo)

or

git add 3rd party/libconfig/libconfig.c (adds the file to the track and makes it safe to merge?)

 

I'm no git expert, so I could be wrong.

 

 

Used his method of git add 3rdparty/libconfig/libconfig.c and then git pull

then it works immediately! Thanks again!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.