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

[PATCH] documentation: update the "Pushing changes to a public repository" section

From
Elia Pinto <gitter.spiros@gmail.com>
Date
Feb 19, 2010, 16:45 UTC
Message-ID
<4df72b1a1002190845o2cbde92btb8804e2467ffda51@mail.gmail.com>
Extracted from git v1.7.0 Release Notes:
* "git push" into a branch that is currently checked out (i.e. pointed at by
   HEAD in a repository that is not bare) is refused by default.
Update the user manual where necessary
---
 Documentation/user-manual.txt |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index fe6fb72..0897839 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1963,10 +1963,14 @@ As with `git fetch`, `git push` will complain
if this does not result in a
 handling this case.

 Note that the target of a "push" is normally a
-<<def_bare_repository,bare>> repository.  You can also push to a
-repository that has a checked-out working tree, but the working tree
-will not be updated by the push.  This may lead to unexpected results if
-the branch you push to is the currently checked-out branch!
+<<def_bare_repository,bare>> repository.  Until the version 1.7 you could
+also push to a repository that has a checked-out working tree,
+but the working tree will not be updated by the push.  This might lead to
+unexpected results if the branch you pushed to was the currently checked-out
+branch! From 1.7.0 git push" into a branch that is currently checked out
+(i.e. pointed at by   HEAD in a repository that is not bare)
+is refused by default.
+

 As with `git fetch`, you may also set up configuration options to
 save typing; so, for example, after
--
1.6.6
Next: Santi Béjar
Message 1 of 2 in “documentation: update the "Pushing changes to a public repository" section”
  1. documentation: update the "Pushing changes to a public repository" sectionElia Pinto, Feb 19, 2010
  2. Santi BéjarFeb 19, 2010

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.