Learn the basics of using Git for managing projects, tracking changes in code, and collaborating with other coders.
UNCC Data Science Initiative | By: Colby T. Ford, Ph.D.
- Initialize a New Repository
git init <repo name>
- Begin Tracking a New File
touch tmpfile.txt
git add tmpfile.txt
- Commit Changes
git commit -m "add file"
- Connect Repo to Git Remote
git remote add <name> <url>
- Push Changes
git push <name>