I'm completely new to git. I'm working in Mac Terminal.
Whenever I do a git status
in my home directory, all untracked files, files in the stage directory, and committed files in my entire home directory appear. When I do a git log
in my home directory, I get the following error:
fatal: bad default revision 'HEAD'
How do I go about correcting this error? How do I get git to stop tracking the contents of my entire home directory without affecting it in its current state?
Thanks in advance, and I apologize for my ignorance. I just do not want to do anything that could be potentially damaging to my home directory.
When I enter git status
in the main directory, I get the following:
~ (master) > Kojo$ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: Desktop/Classes/Person.cpp
new file: Desktop/Classes/Person.h
new file: Desktop/Classes/Tweeter.cpp
new file: Desktop/Classes/Tweeter.h
new file: Documents/AoGPMidterm/xcode/TriMesh.h
new file: Projects/Testing/Testing/ConditionalClass.cs
new file: Projects/Testing/Testing/Lucky_Num.cs
new file: Projects/Testing/Testing/NewEnum.cs
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: Desktop/Classes/Person.cpp
deleted: Desktop/Classes/Person.h
deleted: Desktop/Classes/Tweeter.cpp
deleted: Desktop/Classes/Tweeter.h
modified: Documents/AoGPMidterm/xcode/TriMesh.h
modified: Projects/Testing/Testing/Lucky_Num.cs
Untracked files:
(use "git add <file>..." to include in what will be committed)
.3dequalizer/
.Assimilate/
.CFUserTextEncoding
.MacOSX/
.adobe/
.android/
.appletviewer
.bash_git
.bash_history
.bash_profile
.bashrc
.bashrcecho
.bitrock/
.cache/
.codeintel/
.config/
.cptzzscn