0

I am confused as I am doing it first time.

So I have total three copies of my project.

  1. In my local laptop
  2. In bitbucket
  3. Live server (Digital Ocean)

Now, I did some update in configuration in Live server copy and didn't do the same in Local copy.

I have re-written some of my code in local machine and then git push my code to bitbucket.

Now I want to pull all the changes to the LIVE SERVER COPY from the bitbucket's updated code.

How can I do that? I did git fetch origin master and it gives me a message like this * branch master -> FETCH_HEAD

EDIT After doing git pull I see this error

error: Your local changes to the following files would be overwritten by merge:
.env
config/nuxt.js
Please, commit your changes or stash them before you can merge.

Aborting

and I know the above two files code are different from local/bitbucket copy and I actually don't want to over ride the above files but want other changes to get pulled from bitbucket to live server.

Any help would be greatly appreciated.

Thank you.

Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95

0 Answers0