Skip to content

Commit

Permalink
Remove tab characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed May 15, 2023
1 parent 3818470 commit 4719a3f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/doc/en/developer/github.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ your fork
Updating files: 100% (9936/9936), done.
[alice@localhost ~]$ cd sage
[alice@localhost sage]$ git remote -v
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)

If you already have a local Git repo and only want to link your fork as ``origin`` remote, then do::

[alice@localhost sage]$ git remote add origin /~https://github.com/alice/sage.git
[alice@localhost sage]$ git remote -v
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
[alice@localhost sage]$ git fetch origin
remote: Enumerating objects: 1136, done.
remote: Counting objects: 100% (1084/1084), done.
Expand All @@ -147,10 +147,10 @@ You also add the Sage repo ``sagemath/sage`` as your remote ``upstream``::

[alice@localhost sage]$ git remote add upstream /~https://github.com/sagemath/sage.git
[alice@localhost sage]$ git remote -v
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
upstream /~https://github.com/sagemath/sage.git (fetch)
upstream /~https://github.com/sagemath/sage.git (push)
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
upstream /~https://github.com/sagemath/sage.git (fetch)
upstream /~https://github.com/sagemath/sage.git (push)


.. NOTE::
Expand All @@ -161,10 +161,10 @@ You also add the Sage repo ``sagemath/sage`` as your remote ``upstream``::
[alice@localhost sage]$ git remote add origin git@github.com:alice/sage.git
[alice@localhost sage]$ git remote add upstream git@github.com:sagemath/sage.git
[alice@localhost sage]$ git remote -v
origin git@github.com:alice/sage.git (fetch)
origin git@github.com:alice/sage.git (push)
upstream git@github.com:sagemath/sage.git (fetch)
upstream git@github.com:sagemath/sage.git (push)
origin git@github.com:alice/sage.git (fetch)
origin git@github.com:alice/sage.git (push)
upstream git@github.com:sagemath/sage.git (fetch)
upstream git@github.com:sagemath/sage.git (push)

To prevent accidental pushes to ``upstream`` (instead of ``origin``), you may want to disable it by running::

Expand Down
8 changes: 4 additions & 4 deletions src/doc/en/developer/workflows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ so that your changes can be reviewed for inclusion in Sage.
Before proceeding, check that you have ``origin`` and ``upstream`` remotes right::

[alice@localhost sage]$ git remote -v
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
upstream /~https://github.com/sagemath/sage.git (fetch)
upstream /~https://github.com/sagemath/sage.git (push)
origin /~https://github.com/alice/sage.git (fetch)
origin /~https://github.com/alice/sage.git (push)
upstream /~https://github.com/sagemath/sage.git (fetch)
upstream /~https://github.com/sagemath/sage.git (push)


Development workflow at a glance
Expand Down

0 comments on commit 4719a3f

Please sign in to comment.