Changeset bbeb20f for general/prog
- Timestamp:
- 01/06/2021 04:19:59 AM (3 years ago)
- Branches:
- 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 5a38f35
- Parents:
- 78f55b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gitserver.xml
r78f55b5 rbbeb20f 85 85 cat <user-ssh-key> >> /home/git/.ssh/authorized_keys</userinput></screen> 86 86 87 <para> 88 It is also useful to set the default name of the initial branch 89 of new repositories by modifying the git configuration. As the 90 <systemitem class='username'>root</systemitem> user, run: 91 </para> 92 93 <screen role="nodump"><userinput>git config --global init.defaultBranch trunk</userinput></screen> 94 87 95 </sect3> 88 96 … … 130 138 <screen role="nodump"><userinput>mkdir myproject 131 139 cd myproject 132 git init --initial-branch= main140 git init --initial-branch=trunk 133 141 git remote add origin git@gitserver:/srv/git/project1.git 134 142 cat >README <<EOF … … 137 145 git add README 138 146 git commit -m 'Initial creation of README' 139 git push --set-upstream origin main</userinput></screen>147 git push --set-upstream origin trunk</userinput></screen> 140 148 141 149 <para>The initial content is now pushed to the server and 142 150 is available for other users. On the current machine, the 143 argument <literal>--set-upstream origin main</literal> is151 argument <literal>--set-upstream origin trunk</literal> is 144 152 now no longer required as the local repository is now 145 153 connected to the remote repository. Subsequent pushes
Note:
See TracChangeset
for help on using the changeset viewer.