I am new to git. I have forked another repository awhile back. I wanted a fresh start so I grabbed my private clone and then added a remote for the upstream repository. I can’t pull from the repository because it says some files are not uptodate. I don’t care about these files, I want everything from the upstream remote. Is there a way I can quickly resolve this?
Share
To check out all files as they should be according to the repository, try either
or
Sometimes you may need to remove any untracked/ignored files which might conflict with things that have since been added upstream:
The
-ftells clean to go ahead and remove the files (since this can be dangerous!), the-xtells it to delete ignored files too, and the-dtells it to delete entire untracked directories as well. To see what it’s going to remove, change the-fto-n, for dry run.