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:
Clone the repository (Would only need to do this once). 🤓
e.g git clone https://github.com/Kunleodusan/insurance-policy-app.git
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.
Write your code. 👨💻
Add changed files. git add #file_or_folder_name
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" 🗒️
Push your changes git push origin #BRANCH-NAME.
For example git push origin issue-1🚀
Make a pull request. ♻️
Pull request goes through review & is approved. 👍
Pull request build passes (to be implemented). ✅
Pull request gets merged. 🎉
Merge deploys automatically to our servers (to be implemented). 🌐
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:
Clone the repository (Would only need to do this once). 🤓 e.g
git clone https://github.com/Kunleodusan/insurance-policy-app.git
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 formatissue-#ISSUE-NUMBER
If this was the ticket you were working on, the branch name would beissue-1
for this ticket. e.ggit checkout -b issue-1 -t origin/master
.Write your code. 👨💻
Add changed files.
git add #file_or_folder_name
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"
🗒️Push your changes
git push origin #BRANCH-NAME
. For examplegit push origin issue-1
🚀Make a pull request. ♻️
Pull request goes through review & is approved. 👍
Pull request build passes (to be implemented). ✅
Pull request gets merged. 🎉
Merge deploys automatically to our servers (to be implemented). 🌐