- Navigate to where you want to put this project and clone this repo:
cd path/to/folder
git clone https://github.com/SnobbyDragon/CSE3902_SP21
- Navigate inside the repo folder. You're ready to work now :)
cd CSE3902_SP21
- Create a new branch from master
First check if you're on master usinggit branch
; if not, dogit checkout master
git checkout -b myNewBranch
- Edit your branch. When you're ready, add your changes using
git add myChangedFile
and commit using
git commit -m "my message"
If you want to add and commit all your changes, a shortcut is git commit -am "my message"
- Push your changes using
git push
(it might tell you to set upstream to origin; in that case, do so)
To get others' changes, go to master branch and pull using git pull
You can see your changes before committing using git diff
. To only see which files instead of line by line, do git diff --name-only
.