forked from pybamm-team/PyBaMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pybamm-team#3364 from arjxn-py/git-in-docker
Add documentation for using git inside docker container
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
---------------------------------------------------------- | ||
|
||
|