简体   繁体   中英

Update changes from Bitbucket to local git repository in Eclipse?

I have a repository on bitbucket and I was able to successfully import the repository to Eclipse to work on the java files but I've run into a problem. I can't seem to update Eclipse to accommodate for the commits made to the Bitbucket git repository. I've tried to import again and and I used pull but none of the changes appear on eclipse. When I try import it says the .project file already exists in the directory. When I use pull it says everything is up to date so I figured I'm using pull incorrectly. Can anyone help me out?

You should precise more details to get an answer.

If you did all the steps correctly, for example from this tutorial: http://crunchify.com/how-to-configure-bitbucket-git-repository-in-you-eclipse/ you won't have problems.

Try to delete all the files from the folder that you have imported, and try again.

When I try import it says the .project file already exists in the directory

That is expected: you would need to delete the project from the eclipse workspace (not from the disk) to reimport it again. But its content would be identical.

Check a git status on the command line to see if you are on a branch or in a detached HEAD .
You can also see it in the history view of eclipse.
A detached HEAD would explain why a pull doesn't refresh anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM