Changeset bbeb20f for general/prog


Ignore:
Timestamp:
01/06/2021 04:19:59 AM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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
Message:

More tweaks ot git server page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24075 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/gitserver.xml

    r78f55b5 rbbeb20f  
    8585cat &lt;user-ssh-key&gt; &gt;&gt; /home/git/.ssh/authorized_keys</userinput></screen>
    8686
     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
    8795    </sect3>
    8896
     
    130138<screen role="nodump"><userinput>mkdir myproject
    131139cd myproject
    132 git init --initial-branch=main
     140git init --initial-branch=trunk
    133141git remote add origin git@gitserver:/srv/git/project1.git
    134142cat &gt;README &lt;&lt;EOF
     
    137145git add README
    138146git commit -m 'Initial creation of README'
    139 git push --set-upstream origin main</userinput></screen>
     147git push --set-upstream origin trunk</userinput></screen>
    140148
    141149      <para>The initial content is now pushed to the server and
    142150        is available for other users. On the current machine, the
    143         argument <literal>--set-upstream origin main</literal> is
     151        argument <literal>--set-upstream origin trunk</literal> is
    144152        now no longer required as the local repository is now
    145153        connected to the remote repository. Subsequent pushes
Note: See TracChangeset for help on using the changeset viewer.