docs: use code-block for console-content

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10281>
This commit is contained in:
Erik Faye-Lund
2021-04-15 15:39:10 +02:00
committed by Marge Bot
parent e6e002fc34
commit 54ad6f91c6
7 changed files with 31 additions and 31 deletions

View File

@@ -26,19 +26,19 @@ To get the Mesa sources anonymously (read-only):
#. Install the Git software on your computer if needed.
#. Get an initial, local copy of the repository with:
::
.. code-block:: console
git clone https://gitlab.freedesktop.org/mesa/mesa.git
#. Later, you can update your tree from the master repository with:
::
.. code-block:: console
git pull origin
#. If you also want the Mesa demos/tests repository:
::
.. code-block:: console
git clone https://gitlab.freedesktop.org/mesa/demos.git
@@ -77,7 +77,7 @@ tokens <https://gitlab.freedesktop.org/profile/personal_access_tokens>`__
to push over HTTPS if ssh does not suit your needs. In this case, create
a token, and put it in the URL as shown here:
::
.. code-block:: console
git remote set-url --push origin https://USER:TOKEN@gitlab.freedesktop.org/your~user~name/mesa.git
@@ -89,7 +89,7 @@ Windows <https://git.wiki.kernel.org/index.php/WindowsInstall>`__ you'll
want to enable automatic CR/LF conversion in your local copy of the
repository:
::
.. code-block:: console
git config --global core.autocrlf true
@@ -118,7 +118,7 @@ Developer Git Tips
If you try to do a pull by just saying\ ``git pull`` and Git
complains that you have not specified a branch, try:
::
.. code-block:: console
git config branch.master.remote origin
git config branch.master.merge master
@@ -137,7 +137,7 @@ Developer Git Tips
If it has been awhile since you've done the initial clone, try
::
.. code-block:: console
git pull
@@ -145,7 +145,7 @@ Developer Git Tips
Make your changes and use
::
.. code-block:: console
git add <files to commit>
git commit
@@ -161,7 +161,7 @@ Developer Git Tips
To avoid this,
::
.. code-block:: console
git pull --rebase
git push
@@ -181,7 +181,7 @@ Developer Git Tips
If you want the rebase action to be the default action, then
::
.. code-block:: console
git config branch.master.rebase true
git config --global branch.autosetuprebase=always