I seem to have an issue with using git pull on a local branch. Essentially I have cloned a branch from my remote BitBucket repository, which is cloned to my USER_HOME\BRANCH directory on my machine. I want to keep this branch up to date with the remote branch. I do not make any changes to the branch on this machine. People on different machines commit their changes to this branch in bitbucket, and I want to be able to get those files without having to delete the directory and git clone all over again. Here is what i do after i have the clone.
git fetch && git checkout -b <branch>
git pull <branch> <repo_url>
Git pull generally returns "you are X commits behind origin/. It then performs the git pull, however if i go to the directory where my branch is located, none of the files have been altered. Doing a git pull immediately after returns "already up to date".
So there is a disparity between the actual folder with the files and with my git branch. I am new to git and could have easily missed something, although I have tried many things and can't get it to update the files. Any ideas?
I have tried:
git fetch origin
git reset --hard origin/master
git pull --no-ff <repo_url> <branch>