- Create a new branch
git checkout -b <new-branch-name>
Example
git checkout -b Keystone-2
- Create a update code on the branch
- Git add, commit, and push
git add <directory to add>
git commit -m "<message>"
git push -u origin <new-branch-name>:<new-branch-name>
- Create a pull request to master
- Add a reviewe, and assigne
- Wait for Review
- Merge Pull Request
- Later, we could execute in the server without done it from scratch
Using SSH to Clone Github
- Check ~/.ssh folder is there any id_rsa & id_rsa.pub
cd ~/.ssh
- If there is none of it, then you should generate ssh keys. Note : You could add passphrase if you like!
ssh-keygen
- Add the SSH Key to your github account
- Clone a repo using
git clone git@github.com:SOCaaS/<repo-name>