- Git is a distributed version control system for tracking changes, collaborating, and recovering prior states.
- GitHub is a hosted platform for Git repositories that adds pull requests, code review, issues, and permissions.
- Typical student workflow for contributing to a class repository: fork the upstream repo to your GitHub account, clone your fork locally, make changes on your fork, push to your fork, open a pull request to the upstream repo.
-
Git installed
- Windows: install "Git for Windows" from git-scm.com. Use Git Bash or PowerShell.
- macOS: Git is often preinstalled. Otherwise install via Xcode Command Line Tools or from git-scm.com.
- Linux: install via your package manager, for example
sudo apt install gitorsudo dnf install git.
-
GitHub account and the ability to sign in on the web.
-
One-time Git identity on your machine
git config --global user.name "Your Name" git config --global user.email "you@example.com"
-
Authentication for pushes over HTTPS
- When Git prompts for a password, use a GitHub personal access token. Store it in your OS credential manager when asked.
You will contribute a short introduction file to the upstream class repo and submit it via a pull request.
Upstream repository:
https://github.com/lybarger/IT700
- Open the upstream repo in your browser.
- Select Fork. Accept defaults to create
https://github.com/<your-username>/IT700.
-
On your fork’s page, select the green Code button and copy the HTTPS URL.
-
Open a terminal:
- Windows: Git Bash or PowerShell
- macOS: Terminal
- Linux: your preferred terminal
-
Choose or create a working folder, then run:
git clone https://github.com/<your-username>/IT700.git cd IT700
-
Verify you are inside the repo:
git status
-
Create a Markdown file in the
introductions/folder named with your last name, for exampleintroductions/garcia.md.- Use any text editor. Add your name and 1–2 sentences on research interests.
-
Stage, commit, and push to your fork:
git add introductions/<your-last-name>.md git commit -m "Add introduction: <Your Name>" git push origin main
- If the default branch is not
main, replacemainwith the default shown bygit branch -a.
- If the default branch is not
-
In your fork on GitHub, click Contribute or Compare & pull request.
-
Ensure the comparison is:
- base repository:
lybarger/IT700, base:main - head repository:
<your-username>/IT700, compare:main(or your branch if you used one)
- base repository:
-
Write a brief description and click Create pull request.
Once your PR is merged, sync with upstream so your fork and local copy include classmates’ changes.
-
Add the upstream remote once:
git remote add upstream https://github.com/lybarger/IT700.git git remote -v
-
Fetch upstream updates and integrate them:
git fetch upstream git checkout main git merge upstream/main
-
Push the updated main to your fork:
git push origin main
# clone your fork
git clone https://github.com/<you>/IT700.git
cd IT700
# create or edit files, then:
git add <path>
git commit -m "Message"
git push origin <branch>
# set and use upstream
git remote add upstream https://github.com/lybarger/IT700.git
git fetch upstream
git checkout main
git merge upstream/main
git push origin main