Skip to content

jdevfullstack-tutorials/github-desktop-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Github Desktop Commit Workflow

I have my personal commit workflow using GitHub Desktop. The catch is that, I'm not installing Git. You don't need Git to use GitHub Desktop. But you need a technique for you to have your commits as verified.

I'm actually into branches because I feel I can group my commits into related features or bug fixes.

My pattern of naming also is the date and the count commit which I call sprint, so this is an example of my branches in a day

december12-sprint1, december12-sprint2, december12-sprint3

I can easily remember the things that happened there.

I'm using this not only in my personal projects but also in my company's projects.

Steps

  1. Always fetch and pull it.

  2. Start coding.

  3. When it's time to commit it, don't commit it on the default branch. Make a branch instead and bring the changes to it, so there will be no new commits left on the default branch.

  4. My way of naming new branches is the date and the count of the commit. I already explained this above.

  5. I can get the commit description by using the tab key but if I need to make a very important summary description I will do so.

  6. Once it is comitted, I will publish the branch. This is an unverified commit on GitHub. Then the branch will pop up on GitHub. I'll review it and make a PR then merge. This is a verified commit now. This is clean actually. When it's not working at the production setup, you can always revert it on GitHub.

  7. I will switch to master leaving the changes on that branch. Then I will fetch again and pull those recent changes. Done. You have the synced local project same for GitHub. Start working on code again.

It might be a longer route, but it's worth it.