-
Notifications
You must be signed in to change notification settings - Fork 0
Git and GitHub Workflow
Git tracks changes in your project files. GitHub stores the remote copy of your personal repository.
Create your personal it140-projects repository in Module Five.
Use that same repository for:
- Project One
- Module Six Milestone
- Project Two
Do not create a separate it140-projects repository for each module.
A basic checkpoint is:
git status
git add <files-you-changed>
git commit -m "Describe the work you completed"
git pushThe top-level README provides activity-specific git add examples.
Use git status before committing.
It helps you see:
- Files you changed
- Files staged for the next commit
- Untracked files
- Whether your branch is ahead of or behind the remote
Read the output before running more Git commands.
If your personal repository already exists but is not on the computer you are using, clone your existing personal repository instead of creating another copy from the course template.
cd ~/Repos
gh repo clone "$(gh api user --jq .login)/it140-projects"
cd it140-projects
git statusIf you already have the repository on both computers, push current work from one computer before pulling or continuing on the other.
Your personal project repository contains graded work. Keep it private unless current course policy or your instructor explicitly directs otherwise.
Do not post completed solutions in public Issues or Discussions.
A successful git push backs up your work to GitHub. It does not submit the activity for grading.
Use D2L Brightspace for each activity's required submission.