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

Re: Things that surprise naive users

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Apr 18, 2007, 23:57 UTC
Message-ID
<46a038f90704181657i540e8468xf2809e81e5cf7ac5@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0704181503080.27922@iabervon.org>
On 4/19/07, Daniel Barkalow <barkalow@iabervon.org> wrote:
> 2. There's no easy way to tell that you've made commits that you haven't
>    pushed upstream. In fact, it's impossible to tell when disconnected
>    whether you've pushed everything. This needs some command to report it,
>    and also for push to update the fetch sides of remote heads it updates.

Cogito does this (push updating the refs), and I like it. I think it's worth doing. Then git-branch -v could flag pending-to-push local branches.

Show 6 quoted lines
> 3. You can't create a new repository by pushing, even if you could
>    actually create the repository. Obviously, this will be blocked by
>    policy more often than pushing in general would be, but it's not
>    always blocked. It's also harder than it should be to turn a repository
>    created locally into a repository identical in configuration to a clone
>    of a newly-created remote repository.
It's not too hard to do a
      git-publish git+ssh://host/path/to/repo.git
that just does a git init or maybe rsyncs out.
> 4. Creating new branches off of existing branches/remotes doesn't
>    configure the new branches in the obvious way (i.e., such that the
>    default update action matches the create action).

Junio was pointing out recently that there's an option for that - pull.automerge I think - that you can set in your /etc/gitconfig. Or you can say --track

cheers,
martin
Previous: Daniel Barkalow
Message 4 of 4 in “Things that surprise naive users”
  1. Daniel BarkalowApr 18, 2007
  2. Steve FrécinauxApr 18, 2007
  3. Daniel BarkalowApr 18, 2007
  4. Martin LanghoffApr 18, 2007

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.