git - Odd Circumstances lost my whole xcode project from github -


i write heavy heart,

another programmer started project on computer. unbeknownst me had set git repo had never worked before, had never pushed or synced of data.

i put in few weeks work on project, try crank out , assume being saved hard-drive. come , files reverted when received other programmer. call other programmer. other programmer informs me deleted repo start fresh on git hub. i'm guessing files never saved hard drive have been lost git hub delete? ideas || solutions || suggestions?

your project stored locally deleting github repository doesn't affect it.

use git log see if there commit can go to. if there 1 can use git checkout <commit> switch state.

also can check if code on other branch. list branches use git branch switch git checkout <branch>

you can try use git stash list , see if there dirty working directory can restore git stash apply <stash>


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -