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?
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.
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.
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!
With git pull --ff-only , Git will update your branch only if it can be “fast-forwarded” without creating new commits.
Check whether you are on the right branch and have checked out the same revision you are comparing to: git checkout HEAD
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With