Here is a quick overview of what you need:
Create a local version of the remote repository on my computer:
git clone <remote-url>
Start creating and tracking changes to your local copy:
When you are finished making changes, revert them back to the remote repository.
git push origin <branch>
When you click on the remote repository, your changes may be rejected, because there are new commits on the remote control with which you must combine your work, in which case you can
git fetch origin git merge origin/branch
to synchronize your local work with new changes, then try again. Avoid resetting commits that are already available to other users, but because this will cause them to re-synchronize their work with overwritten commits (if your team arranges this, then it is possible).
You should read the Pro Git Book.
All that I have stated above is just a brief summary . I did not even discuss how to resolve merge conflicts.
If you really want to become proficient with Git, I still highly recommend that you read the FREE Pro Git book online , particularly in chapters 1-3, 6-6.5. There's even an iPad, Kindle, and PDF versions that you can download for free.
user456814
source share