On Tue, 28 Nov 2006, Joseph Wakeling wrote:Depending on whether you like editing config files by hand or not, you would either just edit your ~/.gitconfig file and add a section like: [user] name = My Name Goes Here email = myemail@work.com or you would use "git repo-config" to do it for you. Personally, I find it easier to just edit the .gitconfig file directly, since the config file syntax is actually rather pleasant, but if you want to do it with a git command, you'd do git repo-config --global user.name "Joseph Wakeling" git repo-config --global user.email joseph.wakeling@webdrake.net (where the "--global" just tells repo-config to use the user-global ~/.gitconfig file - you can also do this on a per-repository basis in the repository .git/config file if you want to have different identities for different repositories). You can do either, it's almost purely a matter of taste. Using a local branch and switching between them in place has some advantages once you get used to it: most notably you can trivially use git commands that work on data from different branches at the same time. So with that kind of setup it's very natural to do things like "show me everything that is in branch 'x', but _not_ in branch 'y'", and once you get used to that, you really appreaciate it. But at the same time, if you want to actually keep several branches checked out at the same time, and prefer to work on them that way, just use "git clone" to create the other branch instead. It really is just a matter of taste. I suspect that most people tend to end up using the "multiple branches in the same directory and switching between them" approach after a time, but that's really just an unsubstantiated feeling, and it certainly isn't something that git forces on you. It's just a convenient default name, and it has no real meaning otherwise. Feel free to rename it any way you want (just make sure to edit HEAD to point to the new name is you rename it by hand). There should be no difference, although since everybody seems to use "master" by default, the documentation is probably geared towards it, and who knows, maybe you'll hit a bug that nobody else noticed just because everybody else had a "master" branch, and some silly script had it hardcoded. pickaxe wasn't in the released version back when the discussions were raging, but it's there now. Except it's really called "git blame" these days (and "git annotate") since it's taken over both of those duties. However... ... it's not _quite_ that smart. It will only look for sources to new functions from existing sources in the tree that preceded the commit that added the function, so it will _not_ see it coming from another branch or another project entirely. So when you ask for code annotations (use the "-C" flag to see code moved across from other files), it will still limit itself to just a particular input set, and not go gallivating over all possible branches and projects you might have in your repository. It wouldn't be theoretically impossible to do, but it would be prohibitively expensive (where do you draw the line for what to look at). So git won't do quite what you ask for. There's a "archimport", but I assume bzr has long since broken compatibility with arch (and/or just extended things so much as to not be importable with that any more), regardless of any origin. But it might be a good starting point, at least. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Mark Lord | 2.6.25-rc8: FTP transfer errors |
| Kamalesh Babulal | Re: 2.6.23-rc6-mm1 |
| Greg Kroah-Hartman | [PATCH 025/196] paride: Convert from class_device to device for block/paride |
| Stephen Rothwell | Announce: Linux-next (Or Andrew's dream :-)) |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
