git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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".

Previous: Jakub NarebskiNext: David Jeske
Message 4 of 7 in “Re: policy and mechanism for less-connected clients”
  1. David JeskeAug 14, 2016
  2. David JeskeJun 25, 2008
  3. Jakub NarebskiJun 25, 2008
  4. Junio C HamanoJun 25, 2008
  5. David JeskeJun 25, 2008
  6. David JeskeAug 14, 2016
  7. David JeskeAug 14, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.