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 trialEvan N
5,097 PointsSolo 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
42,016 Pointsbranches 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:
- create branch
- do work in new branch
- make commits until feature is complete
- merge back into master
- push
- 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.
Evan N
5,097 PointsEvan N
5,097 PointsStone 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.