CS416 – Software Engineering | Dr. Dai
This repository serves as the central hub for Team 1’s projects and assignments.
It supports structured collaboration, version control, and streamlined submission of coursework.
⚠️ Commands below include both Windows (CMD/PowerShell) and macOS/Linux (Unix) where applicable.
Move to the folder where you want the repository stored.
cd C:\Users\YourUsername\exampleFolderNamecd ~/exampleFolderName🔎 Always verify your file path before cloning.
- Go to GitHub.
- Click the green Code button.
- Copy the HTTPS URL.
- Run:
git clone PASTE_THE_HTTPS_URL_HEREcd repo-folder-nameAlways update your local repository first.
If on main:
git pullIf on another branch:
git pull origin your-branch-nameCheck staged and unstaged files:
git statusView file changes:
git diffUse these commands frequently.
For a seamless terminal-based workflow, use the following commands.
mkdir FolderNamemkdir FolderNameCreate nested folders:
mkdir FolderName/SubFolderNametype nul > filename.txtNew-Item filename.txttouch filename.txttype nul > FolderName\filename.pytouch FolderName/filename.pyrename oldname.txt newname.txtmv oldname.txt newname.txtmove filename.txt FolderName\mv filename.txt FolderName/del filename.txtrm filename.txtrmdir FolderNameDelete non-empty folder:
rmdir /s FolderNamerm -r FolderName🚫 Do NOT work directly on main unless instructed.
Create and switch to a new branch:
git checkout -b yourname-AssignmentRequiredNamingConventiongit checkout -b Daniel-Hw1PythonMergeSort
git checkout -b Chase-Hw1JuliaQuickSortInclude your name for accountability and clarity.
Add all files:
git add .Add a specific file:
git add path/to/filegit commit -m "Short description of what you did"- Completed Python Merge Sort implementation
- Fixed edge case in Quick Sort
- Updated README instructions
Use clear and professional messages.
git push -u origin Daniel-Hw1PythonMergeSortgit push- Go to the repository on GitHub.
- Click Compare & pull request.
- Add a clear title and description.
- Submit the PR.
- Wait for approval from at least two team members before merging.
Before pushing large changes:
git checkout main
git pull
git checkout Daniel-Hw1PythonMergeSort
git merge mainIf conflicts appear, resolve them before pushing.
git reset --hardgit resetgit commit --amend -m "Improved commit message"git branch
git checkout branch-nameFollow this process every time:
- Pull latest changes:
git pull-
Make changes.
-
Check status:
git status- Stage and commit:
git add .
git commit -m "Describe your changes"- Push:
git push- Open a Pull Request on GitHub.
- Do not push directly to
main - Use descriptive branch names
- Write meaningful commit messages
- Always open a PR before merging
- Keep communication clear within the team
- Prefer terminal-based file management for consistency across environments
Team 1 – CS416 Software Engineering
Professional collaboration through structured version control.