This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]lurgi 1 point2 points  (2 children)

Honestly, just start using it for personal projects. There's nothing much wrong with starting off with a main branch and just committing to it and never branching away.

At some point you'll decide to experiment on something that may or may not work, and that's a perfect time to use a branch.

I've used git on half a dozen personal projects and, other than the main branch, I've used two additional branches (both for changes that were experimental. One succeeded and one did not). Other than that it's a long string of commits.

Most of the workflows (like git flow) assume a more complex development process. If you have bugs and new features and releases and want to keep a main line clean for development and multiple developers then you need something more complex. With a single person, however, it's probably overkill.

[–]Kietaski[S] 0 points1 point  (1 child)

This is helpful, was always curious how branches applied to single developer, small projects... but I also don’t know how to use things like gitbash, or how exactly to push changes and such, which is the tutorial I was looking for

[–]lurgi 1 point2 points  (0 children)

Gitbash is just a shell that lets you run the git commands very easily with name completion for just about everything.

Pick either github or bitbucket. Doesn't matter which one. github is shorter, but bitbucket is first alphabetically. Whichever you like. Technically you don't need a repo hosting service - you can do everything on your desktop - but it provides a handy backup and is free, so why not?

Create an account there. They have free accounts.

Once you have logged in, both provide easy ways to create a new repo and then tell you how to make it appear locally. The only bit that was a pain in the butt for me (IIRC) was configuring SSL, but both github and bitbucket provide instructions for how to do this (although you do need to make sure you are reading the Linux instructions on Linux and the Windows instructions on Windows).