3. $ gem install github
Tuesday, September 14, 2010
Lots of nice shortcuts... Like browse, pull, etc.. Also, look at the ‘hub’ CLI tool.
4. $ gem install gitty
http://github.com/timcharper/gitty
Tuesday, September 14, 2010
Gitty allows you to share local hooks in your git repo. One really useful one we always use is one that always updates the submodules after you
checkout a new ref. We also use it to prevent evil whitespace from entering a project. :)
5. ash
th B ion!
Wi et
Co mpl
$ brew install git-flow
http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/
Tuesday, September 14, 2010
7. $ git flow feature start super-duper
Summary of actions:
- A new branch 'feature/super-duper' was created, based on 'sprint'
- You are now on branch 'feature/super-duper'
Now, start committing on your feature. When done, use:
git flow feature finish super-duper
$
Tuesday, September 14, 2010
8. Based on development branch
$ git flow feature start super-duper
Summary of actions:
- A new branch 'feature/super-duper' was created, based on 'sprint'
- You are now on branch 'feature/super-duper'
Now, start committing on your feature. When done, use:
git flow feature finish super-duper
$
Tuesday, September 14, 2010
9. Pivotal Tracker Hook
$ git commit -m “[#12345678] WIP ...”
Tuesday, September 14, 2010
To automatically finish a story by using a commit message, include "fixed", "completed" or "finished" in the square brackets in addition to the story ID. You may also use different cases or forms of these verbs,
such as "Fix" or "FIXES", and they may appear before or after the story ID. Note: For features, this will put the story in the 'finished' state. For chores, it will put the story in the 'accepted' state
10. $ git flow feature
checkout diff finish list
publish pull rebase start
track
Tuesday, September 14, 2010
See, I told you it had bash completion.
11. $ git flow publish super-duper
Tuesday, September 14, 2010
14. $ tig
2010-09-10 16:26 Ben Mabey + [feature/404-super-duper]
removes blah method in favor of foo
2010-09-10 16:25 Ben Mabey * adds blah blah
2010-09-10 16:18 Ben Mabey * [origin/feature/super-duper]
removes dead TODO file- not using anymore
2010-09-10 16:17 Ben Mabey * WIP
2010-09-10 12:06 Ben Mabey * [origin/sprint] [sprint] commit
where branch started from
Tuesday, September 14, 2010
16. $ git flow feature rebase
Will try to rebase 'super-duper'...
Current branch feature/super-duper is up
to date.
Not interactive! Need to squash WIP commits.
Tuesday, September 14, 2010
17. $ git rebase origin/sprint --interactive
(-i)
Tuesday, September 14, 2010
18. pick 5e78cef WIP
pick 3165c4d removes dead TODO file- not using anymore
pick 24e7bff adds blah blah
pick 162133d removes blah method in favor of foo
Want to get rid of WIPs and false starts...
Tuesday, September 14, 2010
19. pick 5e78cef WIP
s 24e7bff adds blah blah
s 162133d removes blah method in favor of foo
pick 3165c4d removes dead TODO file- not using anymore
Tuesday, September 14, 2010
20. $ git rebase b4472f60 -i
Protip: rebasing locally before can prevent pain
Tuesday, September 14, 2010
21. Pivotal Tracker Hook
$ git commit -m “[Fixes #12345678] ...”
Tuesday, September 14, 2010
To automatically finish a story by using a commit message, include "fixed", "completed" or "finished" in the square brackets in addition to the story ID. You may also use different
cases or forms of these verbs, such as "Fix" or "FIXES", and they may appear before or after the story ID. Note: For features, this will put the story in the 'finished' state. For
chores, it will put the story in the 'accepted' state
22. $ git flow publish super-duper
Tuesday, September 14, 2010