From: Junio C Hamano <junkio@cox.net>
To: linux@horizon.com
Cc: git@vger.kernel.org
Subject: Re: as promised, docs: git for the confused
Date: Fri, 09 Dec 2005 17:22:05 -0800 [thread overview]
Message-ID: <7vk6edycea.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: 20051209054401.4016.qmail@science.horizon.com
linux@horizon.com writes:
> .... There has
> been motion towards putting the git-* commands in their own directory,
> to be invoked by the /usr/bin/git wrapper.
>
> In this case, you'll have to leave out the initial hyphen, or add the
> git binary directory to your $PATH.
Misleading, if not incorrect. git wrapper and a handful others
such as receive-pack and upload-pack that need to be directly
invoked via ssh will remain in /usr/bin and the users do not
need to worry about where the rest went. The recommended way
would be to use non-dash form. If you care about the extra
indirection done by "git" in your script, run "git --exec-path"
once to get the git binary directory and prepend the result to
PATH. You _could_ do the latter for your interactive shell
session as well, but it is not actively recommended.
> * Resetting
>
> There are actually three kinds of git-reset:
> git-reset --soft: Only overwrite the reference. If you need to, you
> can put everything back with a second git-reset --soft OLD_HEAD.
I am not sure what you mean by "second" here. Did you mean to
say something like this?
After you did "git-reset --soft somewhereyoudidnotmeantogo"
by mistake, you can recover with "git-reset --soft ORIG_HEAD".
> There is an undelete: git-reset stores the previous HEAD commit in
> OLD_HEAD.
And probably you meant to say ORIG_HEAD (the latter part of the
documentation you do say ORIG_HEAD).
Now I finally had a chance to finish the command list part.
> git-prune.sh
>...
> eliminate the
Incomplete sentence.
> git-pack-objects
> Given a list of objects on stdin, build a pack file. This is
> a helper used by the various network communication scripts.
... and by (obviously) git-repack.
> + Accepting changes by e-mail
> git-apply
> Apply a (git-style extended) patch to the current index
> and working directory.
Actually it can take "patch -p1" format patch, and the input
does not have to be git-extended patch. Two extra things you
can do when the input is git-extended patch is to apply
rename/copy and filemode changes.
> git-merge-base
>...
> somewhat hairy. The algorithm is not 100% final yet.
I do not think there is any remaining issues with the current
algorithm, so you can mark it final now.
> git-mktag
> Creates a tag object. Verifies syntactic correctness of its
> input. (If you want to cheat, use git-hash-object.)
Is there a particular reason to encourage cheating? IOW, is
mktag cumbersome to use, and if so how?
> git-local-fetch
> Duplicates a git repository from the local system.
> (Er... is this used anywhere???)
Not by git barebone Porcelain, but other Porcelains can use it
if they want. Same thing for git-ssh-fetch.
> git-ssh-pull
> A helper program that pulls over ssh.
git-ssh-pull and git-ssh-fetch are the same program, and the
former is only for backward compatibility. Earlier, only
git-ssh-pull/git-ssh-push pair existed and they continue to
invoke the other on the other end. Terminology standardized to
call downloading phase "-fetch", and its counterpart "-upload";
so git-ssh-fetch invokes git-ssh-upload on the other end (so
ssh-pull/ssh-push can be viewed obsolete if you want).
next prev parent reply other threads:[~2005-12-10 1:24 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7vbqzrcmgr.fsf@assigned-by-dhcp.cox.net>
2005-12-09 5:43 ` as promised, docs: git for the confused linux
2005-12-09 9:43 ` Petr Baudis
2005-12-09 14:01 ` linux
2005-12-09 16:49 ` Randy.Dunlap
2005-12-09 19:12 ` Junio C Hamano
2005-12-09 21:54 ` linux
2005-12-09 23:23 ` Junio C Hamano
2005-12-12 16:34 ` Linus Torvalds
2005-12-12 17:53 ` Timo Hirvonen
2005-12-12 18:18 ` Linus Torvalds
2005-12-12 20:39 ` Randal L. Schwartz
2005-12-13 3:58 ` Joshua N Pritikin
2005-12-13 3:59 ` Randal L. Schwartz
2005-12-13 5:19 ` Junio C Hamano
2005-12-13 5:29 ` Linus Torvalds
2005-12-13 7:18 ` H. Peter Anvin
2005-12-13 8:01 ` Junio C Hamano
2005-12-13 13:58 ` Randal L. Schwartz
2005-12-13 21:16 ` Tip of the day: archaeology Junio C Hamano
2005-12-13 21:54 ` Linus Torvalds
2005-12-13 22:19 ` Junio C Hamano
2005-12-12 17:54 ` as promised, docs: git for the confused Junio C Hamano
2005-12-13 0:22 ` [PATCH] Everyday: some examples Junio C Hamano
2005-12-09 21:33 ` as promised, docs: git for the confused Petr Baudis
2005-12-09 5:44 ` linux
2005-12-10 1:22 ` Junio C Hamano [this message]
2005-12-10 8:00 ` Junio C Hamano
2005-12-10 10:56 ` linux
2005-12-04 21:34 git-name-rev off-by-one bug Petr Baudis
2005-12-08 6:34 ` as promised, docs: git for the confused linux
2005-12-08 21:53 ` Junio C Hamano
2005-12-08 22:02 ` H. Peter Anvin
2005-12-09 0:47 ` Alan Chandler
2005-12-09 1:45 ` Petr Baudis
2005-12-09 1:19 ` Josef Weidendorfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vk6edycea.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=linux@horizon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).