Skip to content

Commit

Permalink
Merge pull request pybamm-team#3364 from arjxn-py/git-in-docker
Browse files Browse the repository at this point in the history
Add documentation for using git inside docker container
  • Loading branch information
Saransh-cpp authored Sep 28, 2023
2 parents 140cadc + 76db27b commit fc570af
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/source/user_guide/installation/install-from-docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,32 @@ If you want to exit the Docker container's shell, you can simply type:
exit
Using Git Inside a Running Docker Container
-------------------------------------------

.. note::
You might require re-configuring git while running the docker container for the first time.
You can run ``git config --list`` to ensure if you have desired git configuration already.

1. Setting up git configuration

.. code-block:: bash
git config --global user.name "Your Name"
git config --global user.email [email protected]
2. Setting a git remote

.. code-block:: bash
git remote set-url origin <fork_url>
git remote add upstream https://github.com/pybamm-team/PyBaMM
git fetch --all
Using Visual Studio Code Inside a Running Docker Container
----------------------------------------------------------

Expand Down

0 comments on commit fc570af

Please sign in to comment.