-
Notifications
You must be signed in to change notification settings - Fork 0
Team rules
When create a branch use the following convention. id_item-name the comes from Trello and the item-name is the feature name from Trello with the space replaced by dashes.
In order to provide quality control to the Smart Teddy project the four-eyes princple is used by using 'pull instead of push' method in Git. Where pull-requests are used to provide a feedback in GitHub. For uploading code in GitHub the following workflow is provided.
Copying the Smart Teddy project from the online GitHub server to your Personal Computer File Directory that you are currently in.
- Open a terminal
- git clone https://github.com/smart-teddy-project-hhs/SmartTeddy.git
Creating new code is not on the master branch, because the master is the current stable release of the software and should ready to upload to a PC or microcontoller to the consumer. Therefore you make a ' temporarial copy' of the master branch. After you're done you will need to make a push to master branch.
- Open a terminal
- git pull
- git branch branchname /origin/master (to create a new branch the current work on GitHub)
Changing from code copy to code copy is easy by switching from branch on your PC.
- Open a terminal
- git checkout nameofthebranch
To make the changes concrete in your PC you will need to 'commit' that your change is valuable by adding a messsage. The message provides feedback on the change written. For example writing newspaper on dementia in a TXT file, then your git message could look like. '1. Introduction Dementia in senior homes' and then after a second bit of writing '2. Paragraph Alzhheimers disease is common in 2020!' the message should describe what is part of your requirement.
- Open a terminal
- git add . (add all the changed files a new commit)
- git commit -m "message of upload"
When your are glad with the changes made in the branch code copy, then you will need to set the new changes from master onto your own PC branch.
- git checkout master
- git pull
- git checkout branchname
- git rebase master (Sets the current code from stable on your code)
- git push
Now that your code is GitHub after the upload you can ask a college for review.
- Go to Github and sign-in
- Navigate to the Smart Teddy project
- Go to the Pull-request Tab
- Click on new to create a pull-request
- Added additional information if needed.
- 'Create' the new reviewable pull-request for your colleges to review.