[GRASS-dev] silly question

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘[https://github.com:OSGeo/grass.git/’: Port number ended with ‘O](https://github.com:osgeo/grass.git/’: Port number ended with ‘O)’

Any suggestions? I don’t want to have to keep forking and cloning

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

To clarify, I do not want to commit any local changes. I just want to get a clean update of the most current code and I want it to overwrite any local changes (I can stash them).

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 11:34 AM, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘[https://github.com:OSGeo/grass.git/’: Port number ended with ‘O](https://github.com:osgeo/grass.git/’: Port number ended with ‘O)’

Any suggestions? I don’t want to have to keep forking and cloning

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access 'https://github.com:OSGeo/grass.git/': Port number ended with 'O'

it seems wrong the url, it should be https://github.com/OSGeo/grass.git

Any suggestions? I don't want to have to keep forking and cloning

Michael

--
ciao
Luca

www.lucadelu.org

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI. There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access '[https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O](https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with ‘O)’

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org

Perhaps caused by some mixing of cloning with HTTPS vs SSH?

git clone git@github.com:petrasovaa/grass.git

git clone https://github.com/petrasovaa/grass.git

The instructions assume ssh.

On Wed, Mar 4, 2020 at 7:11 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI. There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Maybe. The assumption needs to be explicit soponce not everyone will have set up their github account with ssh.

Michael Barton
School of Human Evolution &Social Change
Center for Social Dynamics & Complexity
Arizona State University

…Sent from my iPad

On Mar 4, 2020, at 6:09 PM, Anna Petrášová kratochanna@gmail.com wrote:

Perhaps caused by some mixing of cloning with HTTPS vs SSH?

git clone git@github.com:petrasovaa/grass.git

git clone https://github.com/petrasovaa/grass.git

The instructions assume ssh.

On Wed, Mar 4, 2020 at 7:11 PM Michael Barton <Michael.Barton@asu.edu> wrote:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI. There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Thanks Anna for identifying this. Looks likely.

Markus, Michael, I don’t see the bad URL anywhere on Trac wiki, grasswiki, or in CONTRIBUTING.md file (as far as search works for URLs, it does at least for Trac).

Michael, The CONTRIBUTING.md file has SSH URL for your fork and HTTPS for the OSGeo upstream repo, so your problem was not caused by that.

Nevertheless, switching to HTTPS also for the fork is something we can do if more people support it.

Vaclav

On Wed, Mar 4, 2020 at 9:11 PM Markus Neteler <neteler@osgeo.org> wrote:

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

See

https://trac.osgeo.org/grass/wiki/HowToGit

For example:

git clone [git@github.com](mailto:git@github.com):your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com):OSGeo/grass-addons.git

does not work for me at least. It needs to be:

git clone [git@github.com](mailto:git@github.com)/your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com)/OSGeo/grass-addons.git

replacing git@github.com:your_GH_account with git@github.com/your_GH_account

Maybe the colon works if you have an ssh key set in your github account.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 7:37 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Thanks Anna for identifying this. Looks likely.

Markus, Michael, I don’t see the bad URL anywhere on Trac wiki, grasswiki, or in CONTRIBUTING.md file (as far as search works for URLs, it does at least for Trac).

Michael, The CONTRIBUTING.md file has SSH URL for your fork and HTTPS for the OSGeo upstream repo, so your problem was not caused by that.

Nevertheless, switching to HTTPS also for the fork is something we can do if more people support it.

Vaclav

On Wed, Mar 4, 2020 at 9:11 PM Markus Neteler <neteler@osgeo.org> wrote:

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Wed, Mar 4, 2020 at 11:29 PM Michael Barton <Michael.Barton@asu.edu> wrote:

See

https://trac.osgeo.org/grass/wiki/HowToGit

For example:

git clone [git@github.com](mailto:git@github.com):your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com):OSGeo/grass-addons.git

does not work for me at least. It needs to be:

git clone [git@github.com](mailto:git@github.com)/your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com)/OSGeo/grass-addons.git

Are you sure about this? This definitely doesn’t work for me, if you use https it needs to be:

git clone [https://github.com/](https://github.com/)*YOUR-USERNAME*/*YOUR-REPOSITORY*

replacing git@github.com:your_GH_account with git@github.com/your_GH_account

Maybe the colon works if you have an ssh key set in your github account.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 7:37 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Thanks Anna for identifying this. Looks likely.

Markus, Michael, I don’t see the bad URL anywhere on Trac wiki, grasswiki, or in CONTRIBUTING.md file (as far as search works for URLs, it does at least for Trac).

Michael, The CONTRIBUTING.md file has SSH URL for your fork and HTTPS for the OSGeo upstream repo, so your problem was not caused by that.

Nevertheless, switching to HTTPS also for the fork is something we can do if more people support it.

Vaclav

On Wed, Mar 4, 2020 at 9:11 PM Markus Neteler <neteler@osgeo.org> wrote:

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Thu, Mar 5, 2020 at 7:51 AM Anna Petrášová <kratochanna@gmail.com> wrote:

On Wed, Mar 4, 2020 at 11:29 PM Michael Barton <Michael.Barton@asu.edu> wrote:

See

https://trac.osgeo.org/grass/wiki/HowToGit

For example:

git clone [git@github.com](mailto:git@github.com):your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com):OSGeo/grass-addons.git

does not work for me at least. It needs to be:

git clone [git@github.com](mailto:git@github.com)/your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com)/OSGeo/grass-addons.git

Are you sure about this? This definitely doesn’t work for me, if you use https it needs to be:

git clone [https://github.com/](https://github.com/)*YOUR-USERNAME*/*YOUR-REPOSITORY*

Yes, using the git+colon version is when you have SSH set up and fails otherwise. You need to use the https+slash version in that case.

If you just add https:// infront of the git+colon version, you get “Port number ended with ‘Y’” where Y is the first letter of your user name. That’s because HTTPS URL can contain a port number after the server name separated by a colon.

If you just replace the colon by a slash, it does not work either and Git reports “fatal: repository ‘git@github.com/org-name/repo-name.git’ does not exist”.

I hope this clarifies that.

replacing git@github.com:your_GH_account with git@github.com/your_GH_account

Maybe the colon works if you have an ssh key set in your github account.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 7:37 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Thanks Anna for identifying this. Looks likely.

Markus, Michael, I don’t see the bad URL anywhere on Trac wiki, grasswiki, or in CONTRIBUTING.md file (as far as search works for URLs, it does at least for Trac).

Michael, The CONTRIBUTING.md file has SSH URL for your fork and HTTPS for the OSGeo upstream repo, so your problem was not caused by that.

Nevertheless, switching to HTTPS also for the fork is something we can do if more people support it.

Vaclav

On Wed, Mar 4, 2020 at 9:11 PM Markus Neteler <neteler@osgeo.org> wrote:

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Yes. Maybe we should update the WIKI to clarify too.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 5, 2020, at 6:24 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Thu, Mar 5, 2020 at 7:51 AM Anna Petrášová <kratochanna@gmail.com> wrote:

On Wed, Mar 4, 2020 at 11:29 PM Michael Barton <Michael.Barton@asu.edu> wrote:

See

https://trac.osgeo.org/grass/wiki/HowToGit

For example:

git clone [git@github.com](mailto:git@github.com):your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com):OSGeo/grass-addons.git

does not work for me at least. It needs to be:

git clone [git@github.com](mailto:git@github.com)/your_GH_account/grass-addons.git
cd grass-addons/
git remote add upstream [git@github.com](mailto:git@github.com)/OSGeo/grass-addons.git

Are you sure about this? This definitely doesn’t work for me, if you use https it needs to be:

git clone [https://github.com/](https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=EMrPyoyWN4eYNAxugq7rRkLD12G7TmjEl_0iIXQaiw8&s=Pky6dfSwwYo22sjFZ5NiJ31Z7iYCGBsAQftoK08Yq84&e=)*YOUR-USERNAME*/*YOUR-REPOSITORY*

Yes, using the git+colon version is when you have SSH set up and fails otherwise. You need to use the https+slash version in that case.

If you just add https:// infront of the git+colon version, you get “Port number ended with ‘Y’” where Y is the first letter of your user name. That’s because HTTPS URL can contain a port number after the server name separated by a colon.

If you just replace the colon by a slash, it does not work either and Git reports “fatal: repository ‘git@github.com/org-name/repo-name.git’ does not exist”.

I hope this clarifies that.

replacing git@github.com:your_GH_account with git@github.com/your_GH_account

Maybe the colon works if you have an ssh key set in your github account.

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 7:37 PM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

Thanks Anna for identifying this. Looks likely.

Markus, Michael, I don’t see the bad URL anywhere on Trac wiki, grasswiki, or in CONTRIBUTING.md file (as far as search works for URLs, it does at least for Trac).

Michael, The CONTRIBUTING.md file has SSH URL for your fork and HTTPS for the OSGeo upstream repo, so your problem was not caused by that.

Nevertheless, switching to HTTPS also for the fork is something we can do if more people support it.

Vaclav

On Wed, Mar 4, 2020 at 9:11 PM Markus Neteler <neteler@osgeo.org> wrote:

Michael,

Michael Barton <Michael.Barton@asu.edu> schrieb am Mi., 4. März 2020, 19:11:

Thanks Luca,

I also found someone here that pointed that out. I originally got instructions from the GRASS WIKI.

Which URL?

Markus

There is either an error or it is something that does not work for Macs. The examples use a colon to indicate the repository owner instead of a slash. I had fixed that for the original clone command but did not catch it for the one setting upstream.

Also learned a new one that is exactly what I need in some circumstances:

git reset --hard origin/master

Michael


C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University

voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, https://complexity.asu.edu/csdc

On Mar 4, 2020, at 3:30 PM, Luca Delucchi <lucadeluge@gmail.com> wrote:

Hi Michael,

On Wed, 4 Mar 2020 at 19:49, Michael Barton <Michael.Barton@asu.edu> wrote:

I want to do something that should be simple but it is not. I want to be able to update my fork of GRASS source code from master. The wiki instructions say I should be able to do this with:

git fetch upstream
git rebase upstream/master

But when I do, I get:

unable to access ‘https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com-3AOSGeo_grass.git_&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=t9pyApmJY3B5H0nFh-Gm1IG1VGltt378-0JryEOEZG8&e= ': Port number ended with 'O

it seems wrong the url, it should be https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_OSGeo_grass.git&d=DwIBaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=ocylBhKg4eZ-QJLCBa53vt3dUwHB_ZET96-XkejX2FU&s=2s0FIt9ZZMaEF8dGFczUzV71CeMzJZ3MBNeNaOmhcp4&e=

Any suggestions? I don’t want to have to keep forking and cloning

Michael


ciao
Luca

www.lucadelu.org


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev