News for hackers. Stuff that matters.
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by prosa on Tuesday April 13, 2010 @10:41PM (#1263978)
If you are going to branch every day as you begin your work, rebasing is a useful alternative to merging when you complete your task. You get the benefits of separation and the optionality of throwing away your branch if you choose, but you also keep the commit logs a bit easier to follow.

Worth considering :)

Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by LiveTheDream on Wednesday April 14, 2010 @02:15AM (#1264282)
Rebasing definitely keeps the logs cleaner. Set up branches to rebase automatically with 'git config --global branch.autosetupbase always':

  [branch]  
    autosetuprebase = always
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by philwelch on Tuesday April 13, 2010 @10:32PM (#1263968)
Neat introduction to git, but it suggests using the "git commit -a -m" option, which is not only (edit: partially) redundant with the "git add ." command it recommends using beforehand, but actually interferes if you're trying to make a more selective commit.
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by gonepostal on Tuesday April 13, 2010 @11:04PM (#1264002)
The -a switch for the commit command will only add changes from all files listed in the index. "git add ." will add changed files that are in the index and those that are not. So they are not redundant commands.
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by pyre on Tuesday April 13, 2010 @11:56PM (#1264081)
Huh? They are redundant if you run them in succession. If you've just added all changes to the index, there is no need to use the -a option to commit unstaged changes to files in the index.
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by iamclovin on Wednesday April 14, 2010 @01:04AM (#1264185)
You're right about them being redundant if run in succession. Fixed in the post, thanks!
Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by WALoeIII on Tuesday April 13, 2010 @11:33PM (#1264049)
Use Buildmeister! My co-worker wrote a cool little tool wrapping this common workflow up so you can have single line deploys to staging that merge bug/feature branches.

http://leigh.onehub.com/buildmeister-talk

Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by truebosko on Wednesday April 14, 2010 @10:13AM (#1264957)
Good introductory article. I never thought about branching even on smaller features (only do it for big ones) but it makes sense if you need to fix something critical and you're not finished your feature.

git branching is so simple I guess it makes sense to do so :)

Re:Simple Daily Git Workflow at Gameplan (Cheatsheet included) by d0m on Wednesday April 14, 2010 @12:46AM (#1264158)
.. I feel like I've lost 10 secs reading this. I mean, there are so many git workflow and tutorial, this one is like the first 2 lines of a good one but extended to a full page. Hacker News or Nooby News ? Yes down me, thanks, I'm used to it.