Changeset bbeb20f


Ignore:
Timestamp:
01/06/2021 04:19:59 AM (9 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.1, 11.0, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
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.