CodingFreeAll

Git & GitHub

Version control: save every working version of your project, undo mistakes and back up code to GitHub.

What you use it for

  • Back up project code
  • Download open-source projects
  • Share builds with the community

Commands

Install
sudo apt install -y git
First setup
git config --global user.name "Your Name"
git config --global user.email you@example.com
Save a version
git add .
git commit -m "motor control works"

Pro tips

  • Commit every time something works — it is your undo button.
  • Never commit passwords or API keys; use a .gitignore.