I recently migrated a project to GitHub from Subversion but the current working local directory is still an SVN local repository. Due to complicated reasons it wouldn’t be good to make a new git clone local repository so is there any way to check out the git repository from GitHub?
Right now it’s giving me the error:
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)
Obviously since I’m not using a git local repository.
git initin your Subversion working directory will make it a git repository.git remote add origin <url>, where<url>is the HTTPS or SSH path from GitHub, will connect your local repository to GitHub.git fetch originwill update your local Git repository with all its history from GitHubgit reset origin/masterwill point your local master branch to the latest master from origin, without changing of your files.At this point
git statuswill show you any differences between your local working directory and what’s on GitHub.