• Git permissions and pushing branches, etc

    From Nightfox@VERT/DIGDIST to Digital Man on Thu Nov 26 08:55:48 2020
    Hi DM,

    I've made an update to one of my JS scripts that's in the Synchronet Git repository. I created a branch for it, and I created an account on gitlab.synchro.net. I added a public SSH key to my GitLab account, and my private key is saved to id_rsa in a .ssh directory in my user directory (I'm using Windows). When I try to push my branch with 'git push', I entered my username & password for gitlab.synchro.net, and it says I am not allowed to push code to this project:

    remote: You are not allowed to push code to this project.
    fatal: unable to access 'https://gitlab.synchro.net/sbbs/sbbs.git/': The requested URL returned error: 403

    I'm not sure if there's a step I might be missing. I'm using the command-line git, and I'm wondering if there's a step to point Git to my private key or something?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Thu Nov 26 12:04:28 2020
    Re: Git permissions and pushing branches, etc
    By: Nightfox to Digital Man on Thu Nov 26 2020 01:55 pm

    Hi DM,

    I've made an update to one of my JS scripts that's in the Synchronet Git repository. I created a branch for it, and I created an account on gitlab.synchro.net. I added a public SSH key to my GitLab account, and my private key is saved to id_rsa in a .ssh directory in my user directory (I'm using Windows). When I try to push my branch with 'git push', I entered my username & password for gitlab.synchro.net, and it says I am not allowed to push code to this project:

    remote: You are not allowed to push code to this project.
    fatal: unable to access 'https://gitlab.synchro.net/sbbs/sbbs.git/': The requested URL returned error: 403

    I'm not sure if there's a step I might be missing. I'm using the command-line git, and I'm wondering if there's a step to point Git to my private key or something?

    You need to use SSH instead of https: http://wiki.synchro.net/howto:git#push_without_password
    --
    digital man

    Rush quote #2:
    If the future's looking dark, we're the ones who have to shine.
    Norco, CA WX: 60.7øF, 16.0% humidity, 11 mph SE wind, 0.01 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Nov 27 05:24:21 2020
    Re: Git permissions and pushing branches, etc
    By: Digital Man to Nightfox on Thu Nov 26 2020 05:04 pm

    remote: You are not allowed to push code to this project.
    fatal: unable to access 'https://gitlab.synchro.net/sbbs/sbbs.git/':
    The requested URL returned error: 403

    You need to use SSH instead of https: http://wiki.synchro.net/howto:git#push_without_password

    Thanks. I've updated my configuration according to the instructions, and now it's showing that I'm not allowed to push code to the project:

    remote:
    remote: ========================================================================

    remote:
    remote: You are not allowed to push code to this project.
    remote:
    remote: ========================================================================

    remote:
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Fri Nov 27 07:29:06 2020
    Re: Git permissions and pushing branches, etc
    By: Nightfox to Digital Man on Fri Nov 27 2020 10:24 am

    remote: You are not allowed to push code to this project.

    I just sent you a developer invite on gitlab.synchro.net. That should fix that. --
    digital man

    Sling Blade quote #15:
    Doyle Hargraves: What'cha doin' with that lawn mower blade Karl?
    Norco, CA WX: 67.1øF, 11.0% humidity, 9 mph SSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Fri Nov 27 08:55:53 2020
    Re: Git permissions and pushing branches, etc
    By: Digital Man to Nightfox on Fri Nov 27 2020 12:29 pm

    I just sent you a developer invite on gitlab.synchro.net. That should fix that.

    Thanks. I was able to push up my branch.

    Also, if it's my own mod I'm checking in, who should I assign a merge request to? If I'm the only one working on my mod, would I assign the merge request to myself and merge it to master?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Fri Nov 27 09:04:18 2020
    Re: Git permissions and pushing branches, etc
    By: Nightfox to Digital Man on Fri Nov 27 2020 01:55 pm

    Re: Git permissions and pushing branches, etc
    By: Digital Man to Nightfox on Fri Nov 27 2020 12:29 pm

    I just sent you a developer invite on gitlab.synchro.net. That should fix that.

    Thanks. I was able to push up my branch.

    Also, if it's my own mod I'm checking in, who should I assign a merge request to? If I'm the only one working on my mod, would I assign the merge request to myself and merge it to master?

    You'll need a maintainer to perform the merge to master. You can assign the merge request to me.
    --
    digital man

    Rush quote #43:
    Summers going fast nights growing colder children growing up old friends, older Norco, CA WX: 67.6øF, 11.0% humidity, 2 mph SSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Sun Nov 29 03:12:09 2020
    Re: Git permissions and pushing branches, etc
    By: Digital Man to Nightfox on Fri Nov 27 2020 02:04 pm

    Also, if it's my own mod I'm checking in, who should I assign a merge
    request to? If I'm the only one working on my mod, would I assign the
    merge request to myself and merge it to master?

    You'll need a maintainer to perform the merge to master. You can assign the merge request to me. --

    Thanks.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com