git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git faq : draft and rfc
@ 2006-02-16  0:36 Thomas Riboulet
  2006-02-16  4:04 ` Martin Langhoff
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Thomas Riboulet @ 2006-02-16  0:36 UTC (permalink / raw)
  To: git

hi,

After a quick talk on irc with pasky, fonseca and Tv, I've started to
write a git faq starting with questions I had and they have suggested.

I've setted up a git repos : http://git.librium.org/git_faq.git (atm
it's on my DSL link, so it could be slow, should move soon)

The faq is available in both docbook xml and text format (don't know
what you prefer).
You can see the html output there : http://koalabs.org/~ange/git_faq/faq.html
and the text file : http://koalabs.org/~ange/git_faq/faq.txt
if needed I can write specific xsl stylesheets to handle better or
more suited output.

Comments and suggestions are welcome (on the content, the form, format, etc ...)
I'll try to add questions from the archives of this ml, I'm also open
to any suggestions.

Here is a first (text) version :
----

. Why the 'git' name ?
As Linus' own words as the inventor of git :
"git" can mean anything, depending on your mood.
  - random three-letter combination that is pronounceable, and not
    actually used by any common UNIX command.  The fact that it is a
    mispronunciation of "get" may or may not be relevant.
  - stupid. contemptible and despicable. simple. Take your pick from the
    dictionary of slang.
  - "global information tracker": you're in a good mood, and it actually
    works for you. Angels sing, and a light suddenly fills the room.
  - "goddamn idiotic truckload of sh*t": when it breaks

. Can I use my git public repository in a shared way ?
Yes. Use cg-admin-setuprepo -g or do git-init-db --shared and some
additional stuff. It's ok that refs aren't group writable, it's
enough the directory is. See Cogito README or GIT's cvs-migration doc,
"Emulating the CVS Development Model" for details.

. Git commit is dying telling me "fatal : empty ident <user@myhost>
not allowed", what's wrong ?
Make sure your Full Name is not empty in chsh or the 5th field of your
user line in /etc/passwd isn't empty. If you @myhost is empty make sure
your hostname is correctly set.

. What's the difference between fetch and pull ?
Fetch : download objects and a head from another repository.
Pull : pull and merge from another repository.
See man git-fetch and git-pull for more.

. Can I tell git to ignore files ?
Yes. Put the files path in the repository in the .git/info/exclude file.

. Can I import from cvs ?
Yes. Use git-cvsimport. See the cvs-migration doc for more details.

. Can I import from svn ?
Yes. Use git-svnimport. See the svn-import doc for more details.

. What can I use to setup a public repository ?
A ssh server, an http server, or the git-daemon.
See the tutorial for more details.


--
Thom/ange

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: git faq : draft and rfc
@ 2006-02-16 14:32 Jon Loeliger
  0 siblings, 0 replies; 13+ messages in thread
From: Jon Loeliger @ 2006-02-16 14:32 UTC (permalink / raw)
  To: git


> I'll try to add questions from the archives of this ml, I'm also open
> to any suggestions.

This is sort of the "missing" paragraph from the "git-checkout"
man page.  It's there now, but in the "-m" option.

jdl



Q.  Why won't git let me change to a different branch
    using "git checkout <branch>" or "git checkout -b <branch>"?
    Instead it just says:
        fatal: Entry 'foo.c' not uptodate. Cannot merge.

A.  You have changes to files in your working directory that
    will be overwritten, removed or otherwise lost if the checkout
    and change to the new branch were to proceed.  To fix this
    you may either check your changes in, create a patch of your
    changes and revert your files, or use the "-m" flag like this:
        git checkout -m -b my-branch

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-02-20 13:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-16  0:36 git faq : draft and rfc Thomas Riboulet
2006-02-16  4:04 ` Martin Langhoff
2006-02-16 13:22   ` Johannes Schindelin
2006-02-16 13:38     ` Bertrand Jacquin
2006-02-16 15:00       ` Johannes Schindelin
2006-02-16  7:50 ` Alan Chandler
2006-02-16 15:18 ` Petr Baudis
2006-02-16 23:52   ` Thomas Riboulet
2006-02-20 13:30     ` Bertrand Jacquin
2006-02-20 13:41       ` Bertrand Jacquin
2006-02-20  1:45 ` [PATCH] Convert the git faq to asciidoc Jonas Fonseca
2006-02-20 11:14   ` Thomas Riboulet
  -- strict thread matches above, loose matches on Subject: below --
2006-02-16 14:32 git faq : draft and rfc Jon Loeliger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).