Created
August 11, 2019 21:33
-
-
Save SergeyLitvin/532e0e14d727bee32aebdc95b2454d27 to your computer and use it in GitHub Desktop.
GIT set-upstream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --set-upstream <remote-branch> | |
устанавливает удаленную ветвь по умолчанию для текущей локальной ветки. | |
Любая будущая команда git pull (с выводом текущей локальной ветки), | |
попытается выполнить фиксацию с <remote-branch> в текущую локальную ветвь. | |
Чтобы избежать путаницы, последние версии git обесценивают этот несколько неоднозначный параметр --set-upstream в пользу более подробного варианта --set-upstream-to с идентичным синтаксисом и поведением | |
git branch --set-upstream-to <remote-branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment