On Fri, Oct 19, 2007 at 20:50:29 +0200, Joakim Tjernlund wrote:elin@gmx.de] wrote: Dscho it rarely kind to newbies. subversion, I need find behavior That's becasue tags come in two flavors -- annotated and unannotated. Annotated ones don't point to commits directly, but via 'tag' objects, that contain description and usually signature. Now git push will simply assign a remote branch whatever value you give it. You gave it a tag, so it assigned a tag. Because in the former you are not saying whether refs/heads/linus, refs/tags/linus or something else (the fact that heads and tags are treated specially by git does not mean refs can't have other subdirectories -- it can). On the other hand in the later it resolves the ref locally and uses the same name remotedly. Your commands are quite obvious. No need for warning. (Besides, isn't there a reflog?) It does not create a branch. It creates a ref with slightly funny name (it's refs/heads, not refs/head). ^ Because you could have wanted a tag. Or a remote. Or something completely different, maybe because some add-on uses (eg. stgit uses refs/bases and refs/patches, IIRC). To me it all looks perfectly consistent. But maybe the documentation should state more clearly, that push works in terms of arbitrary refs, NOT branche= s. Feel free to post a documentation patch (people who just had hard time finding something out are usually better at explaining it than old-timers w= ho consider it obvious). --=20 Jan 'Bulb' Hudec <bulb@ucw.cz>
| Adrian Bunk | Re: Linux 2.6.21 |
| Eric W. Biederman | Re: [PATCH] kexec: force x86_64 arches to boot kdump kernels on boot cpu |
| Gene Heskett | Re: [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
| Mel Gorman | Re: 2.6.21-rc7-mm2 -- x86_64 VDSO compile error |
git: | |
| David Miller | Re: Git and GCC |
| Paolo Ciarrocchi | Question about "git commit -a" |
| Abdelrazak Younes | Git-windows and git-svn? |
| Steven Grimm | Re: Git User's Survey 2007 |
| Kai Römer | Re: GPS |
| Thomas MIGLINCI | AW: 2.5mm or 3.5mm |
| Alexey Feldgendler | Re: Neo as cellular modem? |
| ian douglas | Re: SanDisk micro SDHC 8GB card under testing |
| Richard Stallman | Real men don't attack straw men |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| L. V. Lammert | Re: About Xen: maybe a reiterative question but .. |
| Michael | Performance: OpenVPN vs IPsec |
| Shared swap partition | 5 hours ago | Linux general |
| high memory | 2 days ago | Linux kernel |
| semaphore access speed | 2 days ago | Applications and Utilities |
| the kernel how to power off the machine | 2 days ago | Linux kernel |
| Easter Eggs in windows XP | 2 days ago | Windows |
| Root password | 2 days ago | Linux general |
| Where/when DNOTIFY is used? | 2 days ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 2 days ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 2 days ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 2 days ago | Linux general |
