Search code examples
gitcommitpull

How to update GIT remote repository?


I have just switched from subversion to GIT and found out it is much faster.

I have a problem - on one location / computer I change file, delete dir,... and commit it Everything is OK (If I define new GIT on another folder everything is correct). On another location I pull and nothing happens - deleted files stays, no changes is made etc...

Anyone have any idea?


Solution

  • commit only commits to your local repository. I think you are looking for push to send it to the main repo?

    See: What are the differences between "git commit" and "git push"? for a great diagram explaining how Git works.

    Obviously this is different to what you are used to, whereby there is only one centralized repository; now you have your own local repo, hence Git being a distributed system...also partially why it is so much faster for you!