I have no advanced experience in Git. I have the following scenario.
I did a branch, let's say Branch-A (it points to remote branch origin/Branch-A) and I start implementing things in it. Later my colleague created another branch, let's say Branch-B from remote branch origin/Branch-A.
He finished his implementation before me and he requested a merge request from his Branch-B into remote origin/Branch-A and I approved and merged it without problems.
Now all his changes are in origin/Branch-A.
Now I have finish my implementation in my Branch-A. My changes are in local and I want to push them to the remote origin/Branch-A so before doing this, I prefer to do a pull merge from origin/Branch-A into my local Branch-A but when I try to do it an error appears saying:
git pull --progress "origin" warning: redirecting to <remote url here> error: Your local changes to the following files would be overwritten by merge: <list of files conflicting here> Please commit your changes or stash them before you merge.
So how can I merge the remote branch origin/Branch-A (which contains now all the changes from my colleage) into my local branch Branch-A? and then, if merge is ok, to commit and push my changes to remote branch origin/Branch-A.