Track changes in files and collaborate with others using Git.
ls -a
List all files, including hidden files.
git init
Initialize a Git repository.
git status
Check repository status.
git add hello.txt
git add .
Stage files for commit.
git rm --cached <file>
Unstage a file.
git commit -m "use present tense"
Create a commit.
git log
View commit history.
git diff
git diff hello.txt
View changes.
git checkout hello.txt