When not to use this workflow

Following the pull-request workflow for every repository you push to can become quite cumbersome. Say you have a repository for your CV, following this workflow is unnecessarily complicated (even if there’s a friend helping out with your CV).

Typically, when you’re directly working with a repo, the process is quite straightforward, even if there is another collaborator:

  1. Add files using:

    git add <filename>
    
  2. Commit the changes:

    git commit
    
  3. Now, before pushing these changes, if there are new changes added to the repo, run:

    git pull --rebase
    

    If there are no new changes, go to step 5

  4. If there are any conflicts, fix them and do the following:

    git add <conflict-free-file>
    git rebase --continue
    
  5. Once the rebase is successful, it is safe to push the commit:

    git push origin master