- Clone the repo onto your local machine
git clone https://github.com/EchoGems/Tennis_Matcher_App.git
cd
into your project directorygit branch
to check what branch you are currently on (you will see a star next to it)- Make sure you are on your master branch.
git checkout master
- It is good practice to pull from master before creating a new branch. This will help you avoid merge conflicts in the future. (Github = origin)
git pull origin master
- Create a new branch every time you work on something new. The branch name should be short and descriptive.
git checkout -b branch_name
git branch
to make sure you are on your new branch. If not,git checkout
to it.- Work on your code, make your changes
- Commit often and specially after important changes
git status
git add .
git commit -m "descriptive message of changes - in past tense format"
- Push the changes in your branch to Github.
git push origin branch_name
- Now if you look at the repo on Github you will see 'Your recently pushed branches.'
- Click on 'Compare & pull request'
- See the changes you made and click the green button 'Create pull request'
- In the previous step, you created a pull request, which is a request to merge your branch into the master branch.
- You will be able to see if you have merging conflicts or not.
- If you get a green thumbs up, click the green button 'Merge pull request'.
- Now your branch and code has merged into the master code base.
- Return to the master branch
git checkout master
- Make sure to update the code on our local machine to match the most up-to-date code living in the master branch on Github.
git pull origin master
- It is good practice to delete the old branch.
git branch -D branch_name
- Create a new branch off of master to keep on coding.
git checkout -b new_branch_name
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions