I'm new to the "git" system. I may have made a mistake and integrated all my local files into the "git" system.
I use "vs code editor" and discard all changes when I say gives me the following error: Git: fatal: You are on a branch yet to be born
.
this is what it looks like when I use the "git status" command in the terminal:
warning: could not open directory '.Trash/': Operation not permitted
On branch master
No commits yet
Untracked files:
(use "git add <file>..."
to include in what will be committed)
.. / .npm /
.. / .viminfo
.. / .vscode /
.. / .zsh_history
.. / Applications /
. /
.. / Documents /
.. / Downloads /
.. / Library /
.. / Movies /
.. / Music /
.. / Pictures /
.. / Public /
nothing added to commit but untracked files present(use "git add"
to track)
Please don't think I came here looking for a solution. I tried pretty hard. I even read the articles here carefully.How to remove local (untracked) files from the current Git working tree.
git clean
, git reset
commands, such as I tried but failed. I'm trying to find out what I'm missing. I don't want to use the wrong command and ruin everything. If you can explain while you're helping, I'll know and I'll be happy. Thank you.