Исходный код вики Сценарии

Версия 1.8 от Alexandr Fokin на 2023/07/31 13:19

Скрыть последних авторов
Alexandr Fokin 1.6 1 |(% style="width:467px" %)Переместить файл или папку (в рамках одной ветки) с сохранением истории изменений|(% style="width:1028px" %){{code language="cmd"}}git mv <SrcFileOrDirectoryName> <DestinationDirectoryName>{{/code}}
2 |(% style="width:467px" %)Обновить список удаленных веток
3 |(% style="width:1028px" %){{code language="cmd"}}git remote update <RepositoryAlias> --prune{{/code}}(((
4 (RepositoryAlias по умолчанию: origin)
5 )))
6 |(% style="width:467px" %)Загрузка ветки|(% style="width:1028px" %)(((
7 (% id="cke_bm_1192S" style="display:none" %) (%%)Загрузить и сделать активной ветку
Alexandr Fokin 1.1 8
Alexandr Fokin 1.6 9 How to download a branch with git?
10 [[https:~~/~~/stackoverflow.com/questions/2294313/how-to-download-a-branch-with-git>>https://stackoverflow.com/questions/2294313/how-to-download-a-branch-with-git]]
Alexandr Fokin 1.1 11
Alexandr Fokin 1.6 12 {{code language="cmd"}}
13 git branch --track <LocalBranchName> origin/<RemoteBranchName>
14 git checkout <LocalBranchName>
15 {{/code}}
16 )))
17 |(% style="width:467px" %)Отправить одну определенную ветку в определенный репозиторий|(% style="width:1028px" %)(((
18 Отправить одну определенную ветку в определенный репозиторий (в том числе в пустой)
Alexandr Fokin 1.1 19
Alexandr Fokin 1.6 20 {{code language="cmd"}}
21 git remote add <RepositoryAlias> <RepositoryUrl>
22 git checkout <LocalBranchName>
23 git push -u <RepositoryAlias> <LocalBranchName>:<RemoteBranchName>
24 git remote remove <RepositoryAlias>
25 {{/code}}
26 )))
27 |(% style="width:467px" %) |(% style="width:1028px" %)
28 |(% style="width:467px" %)Перенести commit из одной ветки в другую|(% style="width:1028px" %)(((
Alexandr Fokin 1.1 29 Как в Git перенести commit из одной ветки в другую?
30 [[http:~~/~~/paratapok.ru/developer-tools/2593_kak-v-git-perenesti-commit-iz-odnoj-vetki-v-druguyu/>>http://paratapok.ru/developer-tools/2593_kak-v-git-perenesti-commit-iz-odnoj-vetki-v-druguyu/]]
31
Alexandr Fokin 1.6 32 {{code language="cmd"}}
33 git cherry-pick
34 {{/code}}
35 )))
36 |(% style="width:467px" %)Вынесение отдельно взятой папки из конкретной ветки в другую ветку с полным сохранением ее истории.|(% style="width:1028px" %)(((
37
Alexandr Fokin 1.1 38
39 {{code language="cmd"}}
40 git subtree split -P <DirectoryName> -b <NewBranchName>
41 {{/code}}
42
43 Detach (move) subdirectory into separate Git repository
44 [[https:~~/~~/stackoverflow.com/questions/359424/detach-move-subdirectory-into-separate-git-repository/17864475#17864475>>https://stackoverflow.com/questions/359424/detach-move-subdirectory-into-separate-git-repository/17864475#17864475]]
Alexandr Fokin 1.6 45 )))
Alexandr Fokin 1.8 46 |(% style="width:467px" %)Прервать слияние|(% style="width:1028px" %){{code language="cmd"}}git merge --abort{{/code}}
Alexandr Fokin 1.6 47 |(% style="width:467px" %) |(% style="width:1028px" %)
Alexandr Fokin 1.1 48
49 ----
50
Alexandr Fokin 1.6 51 ==== Внутренние ссылки: ====
Alexandr Fokin 1.1 52
Alexandr Fokin 1.6 53 ====== Дочерние страницы: ======
Alexandr Fokin 1.1 54
Alexandr Fokin 1.6 55 {{children/}}
Alexandr Fokin 1.1 56
Alexandr Fokin 1.6 57 ====== Обратные ссылки: ======
58
59 {{velocity}}
60 #set ($links = $doc.getBacklinks())
61 #if ($links.size() > 0)
62 #foreach ($docname in $links)
63 #set ($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
64 * [[$escapetool.xml($rdoc.fullName)]]
65 #end
66 #else
67 No back links for this page!
68 #end
69 {{/velocity}}
70
Alexandr Fokin 1.1 71 ----