Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Pull - Everything up to date, but it's not

Tags:

git

I'm trying to pull from a repository which has about 10 files. On my local repository, I only have one file. When I type

git pull origin master

I get back "Everything up to date"

However, I'm still missing those 9 or so files on the repository. Any ideas as to why this might happen?

like image 960
WillHaack Avatar asked Dec 02 '11 01:12

WillHaack


People also ask

Why does git say up-to-date when its not?

If the current branch is not outdated compared to the one you pull from, pull will say Already up-to-date. even if you have local changes in your working directory. git pull is concerned with branches, not the working tree — it will comment on the working tree only if there are changes which interfere with the merge.

Why git pull is not working?

Not enough information for Git to work with As the error message states: you will have to let Git know what remote branch it should use to track with the current local branch. Doing this will allow you to simply run git pull and Git will know where to bring new data from.

How do I pull everything from git?

To get all the changes from all the branches, use git fetch --all . And if you'd like to clean up some of the branches that no longer exist in the remote repository, git fetch --all --prune will do the cleaning up!

What is git pull -- FF only?

With git pull --ff-only , Git will update your branch only if it can be “fast-forwarded” without creating new commits.


1 Answers

Check whether you are on the right branch and have checked out the same revision you are comparing to: git checkout HEAD

like image 84
Hendrik M Halkow Avatar answered Oct 01 '22 06:10

Hendrik M Halkow