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.
20042004
20052005Note that the target of a "push" is normally a
20062006<<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.
20102011
20112012As with `git fetch`, you may also set up configuration options to
20122013save typing; so, for example:
You can’t perform that action at this time.
0 commit comments