- Clone this repository locally
In your terminal type
git clone [email protected]:VueLosAngeles/homework.git
- Change directories into the Homework repo
cd homework
- Create a new branch
Use the naming convention:
yourname_assignment#
like this: git branch jendiamond_assignment2
- Create a directory with you name on it ie: jendiamond
homework/02_domInteraction/Assignment2/jendiamond
- Add your completed homework files in that directory
homework/02_domInteraction/Assignment2/jendiamond/index.html
homework/02_domInteraction/Assignment2/jendiamond/main.js
homework/02_domInteraction/Assignment2/jendiamond/styles.css
Close all your files in your text editor, That way you can be sure that they are all saved.
- Do your git workflow to
add
andcommit
your homework
git status
git add .
git status
git commit -m 'Add Assignment 2'
git status
- Push your branch to the
VueLosAngeles/homework
repo
git push origin branchname
ie: git push origin jendiamond_assignment2
Do NOT git push origin master
! or just git push
- that default pushes to master
- Do a pull request
Go to https://github.com/VueLosAngeles/homework
Press the pull request button
Do not merge it.
If you don't see a pull request button; you probably forgot to commit your work. The branch will be pushed but there will be nothing in it.
- Check out your local master and oull the changes
git checkout master
git pull origin master
- Start at #3 again to add your next homework