bitbucket - Git pull will not update local files -


i seem have issue using git pull on local branch. have cloned branch remote bitbucket repository, cloned user_home\branch directory on machine. want keep branch date remote branch. not make changes branch on machine. people on different machines commit changes branch in bitbucket, , want able files without having delete directory , git clone on again. here after have clone.

git fetch && git checkout -b <branch> git pull <branch> <repo_url> 

git pull returns "you x commits behind origin/. performs git pull, if go directory branch located, none of files have been altered. doing git pull after returns "already date".

so there disparity between actual folder files , git branch. new git , have missed something, although have tried many things , can't update files. ideas?

i have tried:

git fetch origin git reset --hard origin/master  git pull --no-ff <repo_url> <branch>  

this easiest way achieve want:

first, clone repo.

git clone https://username@bitbucket.org/username/repo.git 

then when want update local copy, run git pull

i suggest re-cloning , using git pull - see if works.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -