Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Git Basics Workflows Workflow Puzzles

Solo project -- Feature branches

I am currently working on a solo project and using a remote repository (github). Is it still worth using feature branches even though I am the only person working on this project?

What is a good and best practices workflow with git when working on solo projects?

1 Answer

Stone Preston
Stone Preston
42,016 Points

branches are always nice regardless of if you are working with others because it insulates the master branch. I generally always create a new branch when adding a new feature

my workflow is:

  1. create branch
  2. do work in new branch
  3. make commits until feature is complete
  4. merge back into master
  5. push
  6. repeat

I usually just push the master because I merge relatively often. i also tend to keep my branches laying around. i dont remove them

also, if this is a personal project you might consider using bitbucket instead of github to keep your repo private (private repos are free on bitbucket, $7 monthly on github). I generally keep personal projects on bitbucket since they are private and dont need to be available to everyone

bitbucket and github are pretty much exactly the same besides the business model. github charges for private repos while public ones are free, whereas bitbucket charges for public repos (repos with greater than 5 contributors) and makes private repos (1-5 contributors) free of charge. the interface is extremely similar and set up with your git repo is exactly the same.

Stone Preston Thank you very much. You sharing your workflow has helped me understand the process a lot better with solo projects and branches. I have checked out BitBucket as well.