From 0ef8b3ee21141991c354b36554386667cfe60b35 Mon Sep 17 00:00:00 2001 From: "arjxn.py" Date: Fri, 22 Sep 2023 02:43:14 +0530 Subject: [PATCH 1/3] Add Instructions for git config --- .../user_guide/installation/install-from-docker.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/source/user_guide/installation/install-from-docker.rst b/docs/source/user_guide/installation/install-from-docker.rst index f25a57d713..a2ba420444 100644 --- a/docs/source/user_guide/installation/install-from-docker.rst +++ b/docs/source/user_guide/installation/install-from-docker.rst @@ -189,6 +189,18 @@ If you want to exit the Docker container's shell, you can simply type: exit + +Using Git Inside a Running Docker Container +------------------------------------------- + +1. Setting up git configuration + +.. code-block:: bash + + git config --global user.name "Your Name" + + git config --global user.email your@mail.com + Using Visual Studio Code Inside a Running Docker Container ---------------------------------------------------------- From 74fb8c39b3279cdadf9d51ea7744bce65fae06ba Mon Sep 17 00:00:00 2001 From: "arjxn.py" Date: Fri, 22 Sep 2023 05:04:49 +0530 Subject: [PATCH 2/3] Add Instructions for git add remote --- .../user_guide/installation/install-from-docker.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/source/user_guide/installation/install-from-docker.rst b/docs/source/user_guide/installation/install-from-docker.rst index a2ba420444..c9bdff1a5e 100644 --- a/docs/source/user_guide/installation/install-from-docker.rst +++ b/docs/source/user_guide/installation/install-from-docker.rst @@ -201,6 +201,16 @@ Using Git Inside a Running Docker Container git config --global user.email your@mail.com +2. Setting a git remote + +.. code-block:: bash + + git remote set-url origin + + git remote add upstream https://github.com/pybamm-team/PyBaMM + + git fetch --all + Using Visual Studio Code Inside a Running Docker Container ---------------------------------------------------------- From 76db27bcace74edf219bf5592a70d108a6ec2705 Mon Sep 17 00:00:00 2001 From: "arjxn.py" Date: Thu, 28 Sep 2023 12:39:44 +0530 Subject: [PATCH 3/3] Add note for git reconfiguring --- docs/source/user_guide/installation/install-from-docker.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/user_guide/installation/install-from-docker.rst b/docs/source/user_guide/installation/install-from-docker.rst index c9bdff1a5e..8024e68fb3 100644 --- a/docs/source/user_guide/installation/install-from-docker.rst +++ b/docs/source/user_guide/installation/install-from-docker.rst @@ -193,6 +193,10 @@ If you want to exit the Docker container's shell, you can simply type: 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