<
От версии < 2.23 >
отредактировано Alexandr Fokin
на 2021/08/13 17:58
К версии < 2.30 >
отредактировано Alexandr Fokin
на 2021/08/17 11:54
>
Изменить комментарий: Добавлен комментарий

Комментарий

Подробности

XWiki.XWikiComments[1]
Комментарий
... ... @@ -1,4 +1,4 @@
1 -Обновить список удаленных веток
1 +Обновить список удаленных веток (RepositoryAlias по умолчанию: origin)
2 2  {{code language="cmd"}}
3 -git remote update origin --prune
3 +git remote update <RepositoryAlias> --prune
4 4  {{/code}}
XWiki.XWikiComments[4]
Комментарий
... ... @@ -1,6 +1,16 @@
1 -Загрузить одну определенную ветку в определенный репозиторий (в том числе в пустой)
1 +Загрузить ветку
2 +How to download a branch with git?
3 +https://stackoverflow.com/questions/2294313/how-to-download-a-branch-with-git
4 +
2 2  {{code language="cmd"}}
6 +git branch --track <LocalBranchName> origin/<RemoteBranchName>
7 +git checkout <LocalBranchName>
8 +{{/code}}
9 +
10 +Отправить одну определенную ветку в определенный репозиторий (в том числе в пустой)
11 +{{code language="cmd"}}
3 3  git remote add <RepositoryAlias> <RepositoryUrl>
4 4  git checkout <LocalBranchName>
5 5  git push -u <RepositoryAlias> <LocalBranchName>:<RemoteBranchName>
15 +git remote remove <RepositoryAlias>
6 6  {{/code}}
XWiki.XWikiComments[5]
Автор
... ... @@ -1,0 +1,1 @@
1 +XWiki.cccc1808
Комментарий
... ... @@ -1,0 +1,3 @@
1 +Git refusing to merge unrelated histories on rebase
2 +https://stackoverflow.com/questions/37937984/git-refusing-to-merge-unrelated-histories-on-rebase
3 +
Дата
... ... @@ -1,0 +1,1 @@
1 +2021-08-17 11:54:06.999