- Link to repo: https://github.com/BryantCabrera/mom-me.
- On your personal repo (NOT the General Assembly) enterprise, log in. then click link above and fork the repo. Make sure the repo is in your personal GitHub (go to your personal GitHub account and the project repo “mom-me” should be there). Then, from YOUR PERSONAL FORK, clone it to your local repo.
- $git clone {without curly braces, put the clone link here}
- $git remote add upstream https://github.com/BryantCabrera/mom-me
- In terminal, cd to the project repo, open it, and $git checkout -b {without these curly braces, put your first name here in all lower case letters}
- EXAMPLE: $git checkout -b bryant
- **any other time you are changing back to your branch, you don’t need to type the “-b” part anymore
- $npm install
- This gets all of the react & express packages downloaded.
- FOR EXPRESS: you’re only concerned with the following folders/files
- Controllers
- Db
- Models
- Public
- Routers
- .env
- Server.js
- FOR REACT: you’re only concerned with the following folders:
- src (where you will be making ALL components)
- public
- When you are 100% sure your data is ready to be merged into the master copy, make sure you are on YOUR OWN BRANCH (lower left of VScode), call Bryant to let him know you're merging, then:
- $git add -A
- $git commit -m “Adds {put your name here}’s {2-3 word description of the feature/code you made}”
- $git push origin {without the curly braces, branchname}
- This passes up the whole branch
- go to your PERSONAL GitHub repo
- OPTION 1: on your PERSONAL GitHub repo, accept and merge the pull requests
- OPTION 2 (if you don't see the green button ABOVE the clone/download button on the right):
- in your PERSONAL remote repo, use the dorpdown on the left to switch to the branch that you made updates to
- click the "New Pull Request" button directly to the right of that dropdown menu
- on the new screen, make sure the left side points to the origin master, and the right side points to your personal branch that has your edits
- Make sure your local repo is always in sync.
- make sure you don't have any pending commits, then
- $git checkout master
- Bryant will let you know when to $git pull upstream master
- $git branch -D {without the curly braces, your name all in lowercase}
- this deletes your old branch
- $git checkout -b {without the curly braces, your name all in lowercase}
- Merging
- On master GitHub link
- Click green button called “compare & pull”
- Create pull request (a) Title: {YourName in all lowercase} –{1-3 word description of new feature/code you made} (b) Description: {line numbers} : Describe in detail what change you made and what it does.
- Click send pull request
- DO NOT hit “merge”, Bryant will be handling this.
- On master GitHub link