0

I migrated servers for my files but when I did, somehow the git config files were missing.

I did a git init and set the remote url to the proper repo, but even after a git fetch, it is not on the master branch and I'm unable to switch to the master branch so git recognizes all of the files as new.

How do I get git to recognize the current files as part of the master branch?

I can't do a git clone to start over because I've already since added code to the files and need to keep the changes.

Tanner
  • 163
  • 1
  • 1
  • 12

1 Answers1

0

I found the answer: Git: can't switch between branches

I just had to do a force git checkout

git checkout -f master
Tanner
  • 163
  • 1
  • 1
  • 12