Re: policy and mechanism for less-connected clients
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 25, 2008, 22:13 UTC
- Message-ID
- <7viqvxxix0.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <1784.50359167091$1214430241@news.gmane.org>
"David Jeske" <jeske@willowmail.com> writes:
>> : "ncvs up" -> >> : >> : git stash; git pull; git apply;
First of all, if you are in CVS mindset, you may not want to necessarily do "git pull", but "git fetch" followed by "git rebase".
I suspect the last one in the above sequence of yours is "git stash pop". Definitely not "git apply" without any argument which is a no-op.
>> : git diff --stat <baseof:current branch> - un-pushed filenames
"git diff [--options] origin..." (three-dots) is often used. This is a shorthand for:
git diff [--options] $(git merge-base origin HEAD) HEAD
that is, "show me what I did since I forked from origin".
>> : git-show-branch <current branch> - un-pushed comments
This would be useful if you are using "fetch + rebase", but in any case
git log --graph --pretty=oneline origin..
may be prettier these days. --graph is a recent invention that appeared first in 1.5.6.
> Question: How do I create a branch on a remote repo when I'm on > my local machine, without sshing to it?
I hope that the question is not "How do I do anything on a remote without having any network connection to it" as its answer cannot be anything but "telepathy".