Cloned from a colleague's computer, now pull from Bitbucket still downloads a lot

This is not an direct answer, but is's too big for the comment. I just tried to reproduce your situation and it works as expected for me (no download from bitbucket on pull).

Some possible reasons of why this don't work for you:

1) Check the colleague repository - does it have proper remotes setup? I am not sure, but probably git uses remotes metadata to understand relations between repositories (just a guess)

2) Maybe the colleague's repository is not up-to-date with bitbucket? So when you do the pull, it just downloads the new data. Try to update the colleague's repository first.

Here is a shell script I used to check the problem, you can play around with something like this to find out what causes the behavior you see:

# Change this to your repository url
[email protected]:user/project

git clone $BITBUCKET_URL project
# Cloning into 'project'...
# Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
# remote: Counting objects: 163, done.
# remote: Compressing objects: 100% (154/154), done.
# remote: Total 163 (delta 53), reused 0 (delta 0)
# Receiving objects: 100% (163/163), 3.62 MiB | 1.30 MiB/s, done.
# Resolving deltas: 100% (53/53), done.
# Checking connectivity... done.

mkdir mycopy
cd mycopy
git clone ../project .
# Cloning into '.'...
# done.
ls
# application.py  database.py  README.md  requirements.txt  static
git remote -v show
# origin    /home/seb/test/gitdist/mycopy/../project (fetch)
# origin    /home/seb/test/gitdist/mycopy/../project (push)

git remote rename origin local
git remote add origin $BITBUCKET_URL
git remote -v show
# local /home/seb/test/gitdist/mycopy/../project (fetch)
# local /home/seb/test/gitdist/mycopy/../project (push)
# origin    [email protected]:owner/project.git (fetch)
# origin    [email protected]:owner/project.git (push)

git pull origin
# Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
# From bitbucket.org:owner/project
#  * [new branch]      master     -> origin/master
# You asked to pull from the remote 'origin', but did not specify
# a branch. Because this is not the default configured remote
# for your current branch, you must specify a branch on the command line.

Output for each command is included above, you can see that there was initial repository download into the project folder (this emulates you colleague's repository) and then there is no download in the local repository when I rename the origin, add new origin as bitbucket url and go git pull origin.

Update: checking with two git versions

As mentioned in comments to other answer, there are two versions of git involved - git 1.9.4 on colleagues machine and git 2.1.4 locally. I also have 2.1.4 locally, so I additionally get the 1.9.4 version this way:

git clone git://git.kernel.org/pub/scm/git/git.git 
git checkout v1.9.4
make configure
./configure --prefix=/usr
make all
./git --version
# git version 1.9.4

Now I modified the test script this way:

# Change this to your repository url
[email protected]:bosonz/gameofdata.git 

GIT194=./git/git

$GIT194 --version

$GIT194 clone $BITBUCKET_URL project
# Cloning into 'project'...
# ....
# (the rest is unchanged)

Result - there is still no problem, download from bitbucket is still only done once.

Tags:

Git