@@ -124,15 +124,15 @@ your fork
124
124
Updating files: 100% (9936/9936), done.
125
125
[alice@localhost ~]$ cd sage
126
126
[alice@localhost sage]$ git remote -v
127
- origin https://github.com/alice/sage.git (fetch)
128
- origin https://github.com/alice/sage.git (push)
127
+ origin https://github.com/alice/sage.git (fetch)
128
+ origin https://github.com/alice/sage.git (push)
129
129
130
130
If you already have a local Git repo and only want to link your fork as ``origin `` remote, then do::
131
131
132
132
[alice@localhost sage]$ git remote add origin https://github.com/alice/sage.git
133
133
[alice@localhost sage]$ git remote -v
134
- origin https://github.com/alice/sage.git (fetch)
135
- origin https://github.com/alice/sage.git (push)
134
+ origin https://github.com/alice/sage.git (fetch)
135
+ origin https://github.com/alice/sage.git (push)
136
136
[alice@localhost sage]$ git fetch origin
137
137
remote: Enumerating objects: 1136, done.
138
138
remote: Counting objects: 100% (1084/1084), done.
@@ -147,10 +147,10 @@ You also add the Sage repo ``sagemath/sage`` as your remote ``upstream``::
147
147
148
148
[alice@localhost sage]$ git remote add upstream https://github.com/sagemath/sage.git
149
149
[alice@localhost sage]$ git remote -v
150
- origin https://github.com/alice/sage.git (fetch)
151
- origin https://github.com/alice/sage.git (push)
152
- upstream https://github.com/sagemath/sage.git (fetch)
153
- upstream https://github.com/sagemath/sage.git (push)
150
+ origin https://github.com/alice/sage.git (fetch)
151
+ origin https://github.com/alice/sage.git (push)
152
+ upstream https://github.com/sagemath/sage.git (fetch)
153
+ upstream https://github.com/sagemath/sage.git (push)
154
154
155
155
156
156
.. NOTE ::
@@ -161,10 +161,10 @@ You also add the Sage repo ``sagemath/sage`` as your remote ``upstream``::
161
161
[alice@localhost sage]$ git remote add origin [email protected] :alice/sage.git
162
162
[alice@localhost sage]$ git remote add upstream [email protected] :sagemath/sage.git
163
163
[alice@localhost sage]$ git remote -v
164
- origin [email protected] :alice/sage.git (fetch)
165
- origin [email protected] :alice/sage.git (push)
166
- upstream [email protected] :sagemath/sage.git (fetch)
167
- upstream [email protected] :sagemath/sage.git (push)
164
+ origin [email protected] :alice/sage.git (fetch)
165
+ origin [email protected] :alice/sage.git (push)
166
+ upstream [email protected] :sagemath/sage.git (fetch)
167
+ upstream [email protected] :sagemath/sage.git (push)
168
168
169
169
To prevent accidental pushes to ``upstream `` (instead of ``origin ``), you may want to disable it by running::
170
170
0 commit comments