windows - How to create an existing Git repository -


i've got repository. when downloading repo, instead of cloning it, seems accidentally downloaded source instead. i've come commit changes , noticed folder i'm working in is, in fact, not repository @ random folder.

i've found various ways of initializing new repo existing contents. how can initialize existing repo existing contents? added remote repo remote in github windows client, doesn't seem have had desired effect.

just clear, intended outcome if had cloned in first place- history, diffs of changes i've made latest in repo, works.

i've tried solutions involving git clone, "clone new folder , copy , paste .git folder". however, seems have effect git thinks deleted , re-added every line of every file in repository instead of changes made.

from talked in comments, should copy on actual data cloned repository opposed .git folder. way, git has chance pick changes without introducing aberrant or unusual state issues.


Comments