@@ -60,7 +60,7 @@ Overview
60
60
61
61
::
62
62
63
- git clone git@ github.com: your-user-name/numpy.git
63
+ git clone https:// github.com/ your-user-name/numpy.git
64
64
cd numpy
65
65
git remote add upstream git://github.com/numpy/numpy.git
66
66
@@ -71,7 +71,7 @@ Clone your fork
71
71
---------------
72
72
73
73
#. Clone your fork to the local computer with ``git clone
74
- git@ github.com: your-user-name/numpy.git ``
74
+ https:// github.com/ your-user-name/numpy.git ``
75
75
#. Investigate. Change directory to your new repo: ``cd numpy ``. Then
76
76
``git branch -a `` to show you all branches. You'll get something
77
77
like::
@@ -100,7 +100,7 @@ Linking your repository to the upstream repo
100
100
``upstream `` here is just the arbitrary name we're using to refer to the
101
101
main NumPy _ repository at `NumPy github `_.
102
102
103
- Note that we've used ``git:// `` for the URL rather than ``git@ ``. The
103
+ Note that we've used ``git:// `` for the URL rather than ``https:// ``. The
104
104
``git:// `` URL is read only. This means we that we can't accidentally
105
105
(or deliberately) write to the upstream repo, and we are only going to
106
106
use it to merge into our own code.
@@ -110,7 +110,39 @@ Just for your own satisfaction, show yourself that you now have a new
110
110
111
111
upstream git://github.com/numpy/numpy.git (fetch)
112
112
upstream git://github.com/numpy/numpy.git (push)
113
- origin git@github.com:your-user-name/numpy.git (fetch)
114
- origin git@github.com:your-user-name/numpy.git (push)
113
+ origin https://github.com/your-user-name/numpy.git (fetch)
114
+ origin https://github.com/your-user-name/numpy.git (push)
115
+
116
+ To keep in sync with changes in NumPy, you want to set up your repository
117
+ so it pulls from ``upstream `` by default. This can be done with::
118
+
119
+ git config branch.master.remote upstream
120
+ git config branch.master.merge refs/heads/master
121
+
122
+ You may also want to have easy access to all pull requests sent to the
123
+ NumPy repository::
124
+
125
+ git config --add remote.upstream.fetch '+refs/pull//head:refs/remotes/upstream/pr/'
126
+
127
+ Your config file should now look something like (from
128
+ ``$ cat .git/config ``)::
129
+
130
+ [core]
131
+ repositoryformatversion = 0
132
+ filemode = true
133
+ bare = false
134
+ logallrefupdates = true
135
+ ignorecase = true
136
+ precomposeunicode = false
137
+ [remote "origin"]
138
+ url = https://github.com/your-user-name/numpy.git
139
+ fetch = +refs/heads/*:refs/remotes/origin/*
140
+ [remote "upstream"]
141
+ url = git://github.com/numpy/numpy.git
142
+ fetch = +refs/heads/*:refs/remotes/upstream/*
143
+ fetch = +refs/pull/*/head:refs/remotes/upstream/pr/*
144
+ [branch "master"]
145
+ remote = upstream
146
+ merge = refs/heads/master
115
147
116
148
.. include :: git_links.inc
0 commit comments