I thought i had it all figured out, but one question still remains. What happens when you pull the repo, make some changes, while in the middle of this, someone else pushes to this repo? At that point you are not able to push until you pull again to update with the repo. Doesn't pulling just essentially download the repo again?
For example: At that point when you push to the repo it looks to be denied as you dont have the lastest. At this stage, i copied the work i did for backup. Then I pulled the repo again. In which it thinks there was no changes to be made. So i add an empty line to make a change. Then push it. At that point i think i did it right, for the exception in the log it did both. So if you push the repo when you dont have the latest, what the difference as it pushed it anyways?
I mean its not a big deal. It would be nice to know. It would also be nice to not have a bunch of changes with an extra empty line as the only change, because you dont know if it pushed or not.