git clone hhttps://github.com/Darrel-Koh/CSCI316GP1.git
git status (To check current status of your git progress)
git fetch (To fetch Teammates changes before starting)
git pull (To confirm pull in Teammates changes)
git checkout -b <new-branch-name> (Creates a new branch for a new feature)
git push origin <new-branch-name> (Push new branch from local machine to main)
git switch <file-name> (Switch between branches)
git commit -m (To commit changes, and include a message)
git push (To push changes to the main repo)
git clone https://github.com/Darrel-Koh/CSCI316GP1.git
System may prompt you request for your credentials, replace <username> with your desired username and <email> with your email address. Dont need <>
These commands configure Git to associate your name and email with the commits you make on your repository.
git config user.name <username>
git config user.email <email>
git status (To check current status of your git progress)
git fetch (To fetch Teammates changes before starting)
git pull (To complete fetching changes)
git status (To check current status of your git progress)
git fetch (To fetch Teammates changes before starting)
git pull(To confirm pull in Teammates changes)
git commit -m (To commit changes, and include a message)
git push (To push changes to the main repo)
git checkout -b <new-branch-name> (Creates a new branch for a new feature)
git commit -m (To commit changes, and include a message)
git push (To push changes to the Branch repo)
git push origin <new-branch-name> (Push new changes in branch from local machine to main)
- If just want to retrieve main changes but dont want your current code to affect main branch
git fetch origin main
git merge origin/main