I'm a beginner in GIT and didn't know how powerful this program is... I erased 8 Gb from several commands.
As I remember I typed the following lines:
$git config --global user.name "my name"
$git config --global user.email "my email"
$git add *.c
$git commit -m
$git status
then I saw a lot of files tracked and untracked, and I tried to remove them (from git). I didn't know I will remove them from my PC. So I did the following:
$git rm
$git rm --cached *.c
this way I removed all the tracked files. So I continued:
$git clean -f
$git clean -f -d
$git clean -f -x
$git clean -d -x -n
this way I removed some of the untracked files, the ones that weren't used by system (I'm using windows). And now this is what I have:
$git status
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be commited)
.gitconfig
AppData/
Desktop/
Favourites/
NTUSER.DAT
NTUSER.DAT{some characters and numbers}
ntuser.dat.LOG1
ntuser.dat.LOG
$git checkout
fatal: You are on a branch yet to be born
Maybe I used more commands but I don't remember! I just want to recover my old files, and I will stop using this lovely Git software.