S
S
Sergey2016-09-30 15:49:54
git
Sergey, 2016-09-30 15:49:54

How to git pull with --bare a repository?

There is a local working repository, there is a remote --bare repository to which push-y. There is a file on the remote that I don't have. Now there is a need to transfer information from the remote version to the local one. If I just do pull origin I get:

branch master -> FETCH_HEAD
Already up-to-date

But the file is not migrated...
If I try to do git fetch -q utkin master:master I get:
fatal: Failed to checkout a non-bare repository to current branch refs/heads/master

How to get information with --bare?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question