can´t push to github

Started by opnsense_user12123, January 28, 2018, 08:08:43 PM

Previous topic - Next topic
git push --set-upstream origin cicada
remote: Permission to opnsense/plugins.git denied to opnsenseuser12123.
fatal: unable to access 'https://github.com/opnsense/plugins.git/': The requested URL returned error: 403

Hi there,

You want to fork plugins to your GitHub account and create a PR (pull request) to the official OPNsense plugins repo with that fork.


Cheers,
Franco

January 28, 2018, 09:37:01 PM #2 Last Edit: January 28, 2018, 09:47:44 PM by opnsense_user12123
Quote from: franco on January 28, 2018, 09:11:05 PM
Hi there,

You want to fork plugins to your GitHub account and create a PR (pull request) to the official OPNsense plugins repo with that fork.


Cheers,
Franco

If i go to github and choose "new pull request" what do i have to select ?

what of these do i have to select?



    Example comparisons
    stable/18.1  a day ago
    stable/17.7  15 days ago
    harden_scp_backup  22 days ago
    stable/17.1  on 23 Jul 2017
    stable/16.7  on 3 Jan 2017
    master@{1day}...master  24 hours ago


Can´t find a plugins folder or a misc folder ?
Can i do a pull request with a syntax to ?

thx

When you push your branch, it should light up on your plugin repo automatically asking you to perform a request.

Can't be missed when you browse your GitHub.


Cheers,
Franco

Quote from: franco on January 28, 2018, 09:47:08 PM
When you push your branch, it should light up on your plugin repo automatically asking you to perform a request.

Can't be missed when you browse your GitHub.


Cheers,
Franco

if i try to push i get this error message (screenshot)


Interpolating from your screenshot...

https://github.com/opnsense_user12123

That gives a 404... Do you have a GitHub account yet?


Cheers,
Franco

yes. and it´s already activated. i can also login into github. but i´m only able to pull but not push!



Okay, you haven't worked plugins yet... https://github.com/opnsenseuser12123?tab=repositories

Go to https://github.com/opnsense/plugins and click "Fork" top right corner.


Cheers,
Franco

January 28, 2018, 10:05:08 PM #10 Last Edit: January 28, 2018, 10:06:57 PM by opnsense_user12123
ok, i did it. but if i push i get the same error as before!

can you try the following:

git remote set-url origin git@github.com:opnsenseuser12123/plugins.git

then "git push -u origin your_branch_name"

i will give it a try tomorrow.....i have to go to sleep :-(........ thx Fabian!!

Quote from: fabian on January 28, 2018, 10:18:26 PM
can you try the following:

git remote set-url origin git@github.com:opnsenseuser12123/plugins.git

then "git push -u origin your_branch_name"

Now i´m able to push to https://github.com/opnsenseuser12123/plugins.git
But i have not uploaded anything yet!

I do not quite understand that!

1. I thought i have to push this to https://github.com/opnsense/plugins?
2. Whats the difference between https://github.com/opnsense/plugins and https://github.com/opnsenseuser12123/plugins.git ?
3. Can anyone else then access my upload and help fixing some issues too ?

thx Fabian for your support! :-)

Quote from: opnsense_user12123 on January 29, 2018, 03:51:26 PM
Now i´m able to push to https://github.com/opnsenseuser12123/plugins.git
But i have not uploaded anything yet!
Sounds good - so there was a misconfiguration in your local git repository

Quote from: opnsense_user12123 on January 29, 2018, 03:51:26 PM
1. I thought i have to push this to https://github.com/opnsense/plugins?
You cannot directly push into this repository because you don't have the permission to do so.
If you create a fork, it belongs to you and you can do with it whatever you want.
This protection prevents vandalism etc.
Quote from: opnsense_user12123 on January 29, 2018, 03:51:26 PM
2. Whats the difference between https://github.com/opnsense/plugins and https://github.com/opnsenseuser12123/plugins.git ?
It is a different repository. opnsense/plugins belongs to the OPNsense group and some group members can write to it while opnsenseuser12123/plugins is yours. You can set the permissions etc. and you can rename or delete it for example. Whatever you do with your repository, you cannot break opnsense/plugins. If you want us to add some code from opnsenseuser12123/plugins to opnsense/plugins, you will have to create a pull request (PR) and the data will be available for review and if it passes, it will be merged (copy of the difference).
Quote from: opnsense_user12123 on January 29, 2018, 03:51:26 PM
3. Can anyone else then access my upload and help fixing some issues too ?
Yes - via pull requests or if you add them to your repository with write access. It is your decision.
How you are going to work is a question of trust.