Git Usage Guide
Git Usage Guide
This page focuses on the Git workflow most students and project teammates actually use: clone a repo, pull updates, commit clean changes, and push them back safely.
Core Workflow
- Pull the latest remote changes.
- Make your edits locally.
- Check what changed.
- Commit with a clear message.
- Push the branch.
| |
Commands You Will Use Often
| |
Good Habits
- Pull before you start editing.
- Keep commits focused on one change set.
- Use
git statusfrequently. - Prefer
git pull --rebasefor a cleaner history when working alone or on personal branches.
Common Problems
- Push rejected: pull remote changes first, then push again.
- Wrong branch: check
git branchbefore committing. - Repeated credential prompts: use a credential manager.
- Large files: keep them out of the repository or move them to Git LFS.