-
-
Notifications
You must be signed in to change notification settings - Fork 381
Git development workflow (intermediate) #467
Git development workflow (intermediate) #467
Conversation
On Sun, Apr 27, 2014 at 08:04:32PM -0700, Aron Ahmadia wrote:
The bookmark analogy is nice to underline the distinction between |
I see Git usage breaking down into a few layers:
You need a bit of mixing (e.g. push and pull before really talking $ git show origin/pr/467 | grep -i '$ git|request|merge|rebase|pull' and the branch flow you start out discussing gets lost in a discussion |
@wking - I find branches to be the singularly most incompletely misunderstood topic for people who are new to Git. Your feedback is appreciated here. I agree that the branch discussion is getting lost. I'll start with staging, then go to branches, then commits. |
My plan is to complete the notebooks as originally outlined (there's one more left for remotes, pull requests, and merging), then refactor if needed. |
On Mon, Apr 28, 2014 at 11:14:35AM -0700, Aron Ahmadia wrote:
Maybe I'm missunderstanding your wording here, but I think branches |
@wking - The previous notebook in this series goes into commits in detail. I argue that you don't need to understand how to make a commit to understand how to use a branch to point to one. |
On Mon, Apr 28, 2014 at 11:16:35AM -0700, Aron Ahmadia wrote:
Sounds like a plan :). It's easier to put the puzzle together once |
On Mon, Apr 28, 2014 at 11:17:51AM -0700, Aron Ahmadia wrote:
No, but you don't want people thinking, “What was a commit again? Oh |
Random interjection: I don't know if this is helpful or not, but I often think of branch pointers as paperweights. If each branch is a pile of commits on your desk, then the branch pointer is a paperweight on top of each one. @ahmadia , I'd be interested in helping write/edit/what-have-you the intermediate lesson in remotes, let me know if I can help out. |
@ChristinaLK - I'd love to have your help! I'll ping back when I've got more notes down. |
On Mon, May 05, 2014 at 02:35:33PM -0700, ChristinaLK wrote:
Both this and the bookmark example work well for serial commits, but make branching and merging difficult to explain. I've been trying to think of a simple physical parallel for folks that like to learn through a tactile experience. Maybe index card commits with smaller branch/tag markers? If I was doing this in class, I'd have folks fill in actual commit messages. I'd probably want a HEAD marker too. This would work well if you could get everyone around a single table. If you needed something to wave around at the front of the class, maybe hole-punching the index cards and stringing them together instead of overlapping the cards themselves? You could merge the I'm not sure it adds much on top of nice graphical representations, but who knows :p. |
I still like bookmarks in a logbook. There's the concept of naturally On Mon, May 5, 2014 at 5:23 PM, W. Trevor King [email protected]:
|
Ha, I've thought about doing something similar with index cards! I think that's great as a teaching strategy, but doesn't help so much with written lessons. I think my only problem with the bookmark metaphor is that books are, usually, linear. I suppose if you really wanted to go crazy, you could say you were reading a "choose your own adventure" and want to track the multiple story paths with multiple bookmarks. But I think what you have is already about as good as it's going to get. A+ software: call things by perfect metaphorical names. ;) |
On Mon, May 05, 2014 at 03:28:27PM -0700, Aron Ahmadia wrote:
But branch and merge points are harder to explain with a book | | | | | | | | | | <-- master Which translates to: 1---2---3---4---5---6---7---b---c---d master I'm still not sure how you'd represent the merge at b, since b isn't |
For more informations about block attributes visit http://kramdown.gettalong.org/quickref.html#block-attributes.
Small "fix" for intermediate Git lesson
There's a lot of good material here and since things have stalled I'd recommend dealing the conflicts, merging this in, and building on the material from there. |
+1 to resolving conflicts and merging this before #759. |
I can take a crack at updating this tomorrow. |
This is mostly fleshed out except for the section on committing at the bottom.