I'm using Git for one of my projects at the moment, and I love it.
However, because I'm the only one working on my project, the only commands I've been using are
git status
git add .
git commit -m 'message here'
git push origin master
I have pushed the project to remote a long time ago ago (I Capistrano for deployment), and all is working great.
Now I want to change the design of the site, but keep the logic intact. I'm guessing I need to create a new branch (let's call it newdesign
) for that.
What I'm wondering, though, is this: if I'm working on the newdesign
branch, and I see a bug in the master
branch, how can I fix the bug on master
and then integrate that bugfix in the newdesign
branch, so that the latter be kept up to date with the actual logic?