You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
authentication confusion when doing git push in next_steps.md #289
Hi @sverhoeven, I encounter this issue when following next_steps.md, indeed the problem was that I couldn't do git remote add origin <URL of repo> using HTTP, but by setting <URL of repo> = git@github.com:name_organization/name_repo did the trick.
Once your Python package is created, put it under [version
control](https://guide.esciencecenter.nl/#/best_practices/version_control) using
[git](https://git-scm.com/) and [GitHub](https://github.com/).
add
Note that you must setup your github authentication to do the following steps,
see [Creating a personal access token](https://docs.github.com/en/github-ae@latest/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
or [Connecting to GitHub with SSH](https://docs.github.com/en/github-ae@latest/authentication/connecting-to-github-with-ssh).
Though if the repo address is now SSH by default, then the instructions should only be for SSH, right? So the link to the first set of instructions should be removed, or put in a different context (namely with instructions to change the address to https).
Note that the next step assumes you have setup your connection to GitHub via SSH, see Connecting to GitHub with SSH.
You can also use a personal access token, see Creating a personal access token. If you choose this option below you will have to replace git@github.com: by https://github.com/.
I made the changes on a new branch: 289-authentication-confusion (is this the format used?). When I try to push the branch it says I do not have permissions. I should have right?
Activity
luisaforozco commentedon Sep 28, 2022
Hi @sverhoeven, I encounter this issue when following next_steps.md, indeed the problem was that I couldn't do
git remote add origin <URL of repo>using HTTP, but by setting<URL of repo> = git@github.com:name_organization/name_repodid the trick.apalha commentedon Nov 17, 2022
I faced the same issue. Shall I change this line
python-template/hooks/pre_gen_project.py
Line 8 in 3c176c5
To
And add after this
python-template/{{cookiecutter.directory_name}}/next_steps.md
Lines 5 to 7 in 3c176c5
add
egpbos commentedon Nov 17, 2022
That would be great imho!
bvreede commentedon Nov 17, 2022
@apalha That looks good!
Though if the repo address is now SSH by default, then the instructions should only be for SSH, right? So the link to the first set of instructions should be removed, or put in a different context (namely with instructions to change the address to https).
apalha commentedon Nov 17, 2022
@bvreede that is a good point.
What about this text:
Note that the next step assumes you have setup your connection to GitHub via SSH, see Connecting to GitHub with SSH.
You can also use a personal access token, see Creating a personal access token. If you choose this option below you will have to replace
git@github.com:byhttps://github.com/.bvreede commentedon Nov 17, 2022
Perfect @apalha! Thanks!
apalha commentedon Nov 18, 2022
I made the changes on a new branch: 289-authentication-confusion (is this the format used?). When I try to push the branch it says I do not have permissions. I should have right?
Or should I do it with a fork?
sverhoeven commentedon Nov 18, 2022
@apalha you should have permission now.
apalha commentedon Nov 18, 2022
Works now, thanks @sverhoeven ! Just made the pull request.