Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+16 votes

So, if my teammate made a change in codes and if I "git pull" does it automatically update the codes in my eclipse? How do I automatically have my eclipse to update the changes that are made?

asked in CSC305 Fall 2022 by (1 point)

4 Answers

+11 votes

I am also a git amateur but I believe what I remember from the labs is that pull will update eclipse code as well, you may need to reload it though.

answered by (1 point)
+11 votes

Yes. The files should just update in Eclipse after a "git pull" from the command line, since Eclipse is viewing editing the same files that are stored in your repo.

But a "refresh" in Eclipse never hurts, if you feel like Eclipse might not be up to date.

Also, sometimes it takes Eclipse a while to get the right little git status icons ( >, +, etc) updated after you do an operation from git bash. But if you open a .java file on Eclipse, it should be showing you the updated code that you pulled.

answered by (4.7k points)
+10 votes

I believe it does. Not a git expert by any means, but that has been my experience, as long as your Eclipse is connected to the same place as your git bash.

answered by (1 point)
+6 votes

It should get updated and you will not have to do any changes. A simple refresh should make everything update from the git pull.

answered by (1 point)
...