View contributor agreement Contribution to this translation requires you to agree with a contributor agreement.

Translation

type: delimited block -
$ git config push.default current
$ git config remote.pushdefault myfork
$ git switch -c mybranch origin/master
0/1120
Context English Polish State
'[<branchname>]@\{upstream\}', e.g. 'master@\{upstream\}', '@\{u\}'
The suffix '@\{upstream\}' to a branchname (short form '<branchname>@\{u\}') refers to the branch that the branch specified by branchname is set to build on top of (configured with `branch.<name>.remote` and `branch.<name>.merge`). A missing branchname defaults to the current one. These suffixes are also accepted when spelled in uppercase, and they mean the same thing no matter the case.
'[<branchname>]@\{push\}', e.g. 'master@\{push\}', '@\{push\}'
The suffix '@\{push}' reports the branch "where we would push to" if `git push` were run while `branchname` was checked out (or the current `HEAD` if no branchname is specified). Since our push destination is in a remote repository, of course, we report the local tracking branch that corresponds to that branch (i.e., something in `refs/remotes/`).
Here's an example to make it more clear:
$ git config push.default current
$ git config remote.pushdefault myfork
$ git switch -c mybranch origin/master
$ git rev-parse --symbolic-full-name @{upstream}
refs/remotes/origin/master
$ git rev-parse --symbolic-full-name @{push}
refs/remotes/myfork/mybranch
Note in the example that we set up a triangular workflow, where we pull from one location and push to another. In a non-triangular workflow, '@\{push}' is the same as '@\{upstream}', and there is no need for it.
This suffix is also accepted when spelled in uppercase, and means the same thing no matter the case.
'<rev>{caret}[<n>]', e.g. 'HEAD{caret}, v1.5.1{caret}0'
mbiesiad

Suggestion added

$ git config push.default current
$ git config remote.pushdefault myfork
$ git switch -c mybranch origin/master

Suggested change:

$ git config push.default current
$ git config remote.pushdefault myfork
$ git switch -c mybranch origin/master

Failing checks:

Unchanged translation a month ago

Loading…

Loading…

Things to check

Suggestions

There is 1 suggestion for this string.

View

Glossary

English Polish
No related strings found in the glossary.

Source information

Labels
No labels currently set!
Flags
no-wrap, priority:100
Source string location
en/revisions.txt:119
Source string age
7 months ago
Translation file
po/documentation.pl.po, string 9525