Git is a distributed version control system that tracks changes in your code, allows collaboration with others, and maintains a complete history of your project.
Download and install from git-scm.com
brew install git
sudo apt-get install git
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git init
git clone <repository-url>
git status
git add <file>
git add . # Add all files
git commit -m "Your commit message"
git push origin main
git pull origin main
git clone http://localhost:3000/username/repository.git
cd repository
# Edit files
echo "# My Project" > README.md
# Stage and commit
git add README.md
git commit -m "Add README"
# Push to gityar
git push origin main