Kunleodusan / insurance-policy-app

0 stars 0 forks source link

Issue/Ticket workflow with GIT #1

Closed Kunleodusan closed 4 years ago

Kunleodusan commented 4 years ago

This ticket is used to demonstrate the git workflow using the terminal to create push your code. There are a number of tutorials online that can help as well. Here's a link to a short description.

First you'll need to install git on your machine. Hit me up if you run into any issues installing git.

The steps include:

  1. Clone the repository (Would only need to do this once). 🤓 e.g git clone https://github.com/Kunleodusan/insurance-policy-app.git

  2. Creating a branch name with issue number & set to track the master branch. git checkout -b #BRANCH-NAME -t origin/master 🌴 . Where #BRANCH-NAME follows format issue-#ISSUE-NUMBER If this was the ticket you were working on, the branch name would beissue-1 for this ticket. e.g git checkout -b issue-1 -t origin/master.

  3. Write your code. 👨‍💻

  4. Add changed files. git add #file_or_folder_name

  5. Commit your changes. (commit message to follow format: git commit -m"fix #ISSUE-NUMBER: description") For example: git commit -m"fix #1 : creating a pull request" 🗒️

  6. Push your changes git push origin #BRANCH-NAME. For example git push origin issue-1🚀

  7. Make a pull request. ♻️

  8. Pull request goes through review & is approved. 👍

  9. Pull request build passes (to be implemented). ✅

  10. Pull request gets merged. 🎉

  11. Merge deploys automatically to our servers (to be implemented). 🌐

Kunleodusan commented 4 years ago

merged