GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Git Workflow with Branches |
For any particular task that you will work on, create a new issue and assign it to yourself. Then create a new branch off the main branch giving it a name, for example feature/creep, with:
$ git checkout main $ git checkout -b feature/creep |
Complete the task, perhaps by writing some code! Once it is completed and tested and ready to merge it back into the main branch, commit and push your work:
$ git commit . -m "Describe your commit briefly." $ git push --set-upstream origin feature/creep |
Then using the github GUI navigate to your branch and select to create a new pull request. Assign a reviewer and connect your pull request to the issue you're working on.
Once your pull request has been approved merge your branch into the main branch and delete your branch.