Old Git stuff

Build software better, together
You can't perform that action at this time. You signed in with another tab or window. You signed out in another tab or window. Reload to refresh your session. Reload to refresh your session.
https://olympuss.ntu.ac.uk/

# NOTE MUST MAKE A PROJECT DIR BEFORE INIT

# step 1: CLONE
$ git clone <url>

# step 2: PULL
$ git pull

# step 3: make changes
i have made some changes to the code

# step 4: ADD
$ git add <fileName>

# step 5: COMMIT
$ git commit -m "brief description"

# step 6: PUSH
$ git push

#if step 6 is giving you issues
$ git push --set-upstream -f origin master
Quickie on Branches
# puts you on a new branch of specifed name
$ git checkout -b <new branch name>

# shows what branches exist and which you are on
$ git branch
Quickie on Push Existing REPO
# MAKE SURE TO SET UP GITHUB CORRECTLY

$ git remote add origin <url given by github>

$ git push -u origin master