File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2004,9 +2004,10 @@ handling this case.
2004
2004
2005
2005
Note that the target of a "push" is normally a
2006
2006
<<def_bare_repository,bare>> repository. You can also push to a
2007
- repository that has a checked-out working tree, but the working tree
2008
- will not be updated by the push. This may lead to unexpected results if
2009
- the branch you push to is the currently checked-out branch!
2007
+ repository that has a checked-out working tree, but a push to update the
2008
+ currently checked-out branch is denied by default to prevent confusion.
2009
+ See the description of the receive.denyCurrentBranch option
2010
+ in linkgit:git-config[1] for details.
2010
2011
2011
2012
As with `git fetch`, you may also set up configuration options to
2012
2013
save typing; so, for example:
You can’t perform that action at this time.
0 commit comments