I use git all the time for my solo missions but I tend to just work the master
.
Should I try forking even if it's just me?
Even if it's just you I would suggest you to try the topic-branch workflow of git. First and foremost to get a feeling for it so you can apply it once you take part in bigger projects.
$ git branch usb_support
$ git checkout usb_support
.. hack hack hack ..
$ git checkout master
$ git merge usb_support
Obviously you can also switch to a different branches in between if you feel like working on something else. Even if you are just on your own it happens that you start working on something only to later realize that it was a bad idea. In that case you can just throw away your topic branch and don't pollute the master branch. Of course if it's a project that nobody else will ever look at it does not matter that much even in the master branch. But then the gaining-experience-argument is still valid.
Forking is about cloning a repo on the remote side, because you don't have direct credential to push on the main common repo.
That is why GitHub introduced forking (which is nothing else than a git clone --bare
on the GitHub server side).
If you do have the right to push directly to a git repo, forking it (meaning establishing a second "common" repo on the remote side) is not needed.
Forking is not like a git clone
you would do on the client side (i.e. on your workstation): there (on the local side) you can clone as many time as you want.
That is why Chris Heilmann will have this slide in his "Reasons to be cheerful" presentation of Fronteers 2010 (a non-profit trade organization of Dutch front-end developer), next October.
CC license
If you cannot directly contribute to a remote Git repo because you want to introduce drastic code, you can fork on the remote side, clone on the local side and pull/push at your heart's content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With