8

I'm still new to using version control and now learning Git with GitHub, working on my own project.

My current workflow is:
1.Clone GitHub repo
2.Make a local branch to add new features/fix bugs
3.Work on the feature/fix
4.Merge the local branch with local master
5.Push origin master

There seems to be no point in making remote branches because I am merging my branches locally. Am I doing it wrong?

Comments
  • 4
    As long as you're working alone and just make quick fixes and small changes, it's ok.

    But working with others may require branches pushed to remote.

    Or if branches live longer than just for a quick fix, it may be a benefit having an off-site backup. Accidently run 'rm' on the wrong directory or a hdd crash can ruin your day.
  • 0
    @ddephor Ah, I see... Thanks!
  • 0
    commits list on master

    "wip"
    "wip"
    "wip"
    "wip"
    "wip"
    "fix"
    "damn"
    "wip"
    "wip"
    "wip"
    "wip"
    "yay"
Add Comment