Standard workflow
The standard workflow is pretty much what we've seen in the previous five chapters, except that you usually would not commit so quickly or often. Typically, it goes like this:
- Create a repository.
- Either clone that repository from the server, or if it was created locally, push it to the server.
- Create a branch.
- Code.
- Test.
- Commit.
- Repeat steps 4-6 until you have a block of code that does "something" (e.g. opens a dialog box and processes the result).
- Test.
- Commit.
- Push.
- Repeat steps 4-10 until you have fulfilled a requirement (self-imposed or otherwise).
- Merge into the main branch (or create a pull request if you are in a team).
There are variants on this. Some people like to push after each commit, but that prevents them from using interactive rebase to reorganize their commits. What happens though if you have pushed your commit and realize that there is additional...