Repository and working tree
A repository stores Git objects and references under .git, while the working tree contains the files you edit. git init creates repository metadata; it does not upload anything. git status reports changes relative to the index and current commit. Run git init -b main inside a new practice directory, then git status; an untracked note is outside recorded history. Separating project files from Git metadata explains why copying a visible file is different from cloning a repository with its history. Deleting .git removes local history metadata; never experiment on an existing project repository when a separate empty practice directory is sufficient today.
Run git init -b main inside a new practice directory, then git status; an untracked note is outside recorded history.
Separating project files from Git metadata explains why copying a visible file is different from cloning a repository with its history.
Deleting .git removes local history metadata; never experiment on an existing project repository when a separate empty practice directory is sufficient today.