OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • can´t push to github
« previous next »
  • Print
Pages: [1] 2

Author Topic: can´t push to github  (Read 10112 times)

opnsense_user12123

  • Guest
can´t push to github
« on: January 28, 2018, 08:08:43 pm »
Code: [Select]
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: can´t push to github
« Reply #1 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
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #2 on: January 28, 2018, 09:37:01 pm »
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
« Last Edit: January 28, 2018, 09:47:44 pm by opnsense_user12123 »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: can´t push to github
« Reply #3 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
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #4 on: January 28, 2018, 09:49:47 pm »
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)

Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: can´t push to github
« Reply #5 on: January 28, 2018, 09:51:39 pm »
Interpolating from your screenshot...

https://github.com/opnsense_user12123

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


Cheers,
Franco
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #6 on: January 28, 2018, 09:53:22 pm »
yes. and it´s already activated. i can also login into github. but i´m only able to pull but not push!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: can´t push to github
« Reply #7 on: January 28, 2018, 09:53:58 pm »
So what's your account name?
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #8 on: January 28, 2018, 09:55:10 pm »
opnsenseuser12123
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17703
  • Karma: 1616
    • View Profile
Re: can´t push to github
« Reply #9 on: January 28, 2018, 09:59:37 pm »
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
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #10 on: January 28, 2018, 10:05:08 pm »
ok, i did it. but if i push i get the same error as before!
« Last Edit: January 28, 2018, 10:06:57 pm by opnsense_user12123 »
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: can´t push to github
« Reply #11 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"
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #12 on: January 28, 2018, 10:27:55 pm »
i will give it a try tomorrow.....i have to go to sleep :-(........ thx Fabian!!
Logged

opnsense_user12123

  • Guest
Re: can´t push to github
« Reply #13 on: January 29, 2018, 03:51:26 pm »
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! :-)
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: can´t push to github
« Reply #14 on: January 29, 2018, 06:00:49 pm »
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.
Logged

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • can´t push to github
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2