I am confused as I am doing it first time.
So I have total three copies of my project.
- In my local laptop
- In bitbucket
- 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.