Every git branch is gone (except master) -
i have been trying delete hidden file in directory , accidentally ran command rm -rf .??*
delete hidden file more 2 characters. believe deleted file contains connections branches because have master branch.
# terminal $ git branch * master
the commands ran prior are:
$ rm -rf .ds* $ rm -rf .??* $ git add . $ git add -u
did delete file of repositories? if so, how retrieve it? if not, why branches used have gone?
edit: should add, on github isn't huge problem, rather understand did , undo if possible.
you deleted .git
directory has repository in, , left data had checked out (which happens master).
to retrieve it, restore backup or repo pushed to.
Comments
Post a Comment