Criei um repositório no github , deu o git init da minha pasta e após isso eu fiz a besteira de dar esses dois comandos abaixo, após isso meus arquivos que estavam na minha pasta sumiram... como voltar os arquivos ? eu ainda não tinha dado nenhum commit.
git add -A
git reset --hard
deivison@Desso MINGW64 /c/xampp/htdocs/adega (master)
$ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .editorconfig
new file: .gitignore
new file: .htaccess
new file: application/.htaccess
new file: application/cache/index.html
new file: application/config/autoload.php
new file: application/config/config.php
new file: application/config/constants.php
new file: application/config/database.php
new file: application/config/doctypes.php
new file: application/config/foreign_chars.php
new file: application/config/hooks.php
new file: application/config/index.html
new file: application/config/memcached.php
new file: application/config/migration.php
new file: application/config/mimes.php
new file: application/config/profiler.php
new file: application/config/routes.php
new file: application/config/smileys.php
new file: application/config/user_agents.php
new file: application/controllers/Cliente.php
new file: application/controllers/Entrada.php
new file: application/controllers/Movimentacao.php
new file: application/controllers/Produto.php
new file: application/controllers/Saida.php
new file: application/controllers/Template.php
new file: application/controllers/Venda.php
new file: application/controllers/index.html
new file: application/core/index.html
new file: application/helpers/index.html
new file: application/hooks/index.html
new file: application/index.html
new file: application/language/english/index.html
new file: application/language/index.html
new file: application/libraries/index.html
new file: application/logs/index.html
new file: application/models/M_Cliente.php
new file: application/models/M_Produto.php
new file: application/models/index.html
new file: application/third_party/index.html
new file: application/views/entrada.php
deivison@Desso MINGW64 /c/xampp/htdocs/adega (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'origin'
deivison@Desso MINGW64 /c/xampp/htdocs/adega (master)
$ git reset --hard
git
.git checkout .
. Eu faço isso sempre que modifico alguma coisa.