Replying to Avatar Basanta Goswami

Also for nostr:nprofile1qqs2qzx779ted7af5rt04vzw3l2hpzfgtk0a2pw6t2plaz4d2734vngnh633s, I am not sure how I am supposed to collaborate using ngit and GRASP. If I publish a repo using npub1x, but want to continue working on it using npub1y, how do I do it? I created a repo using nostr:nprofile1qqs9wvqsav858l8uy57z39vz35ct76fekptrsn3vcejg7sqfdt9w7nsej99y3, the bunker URL was added to the global ngit. I added my own npub (this profile) as a maintainer. I then tried pushing from the terminal but was shown that I was added as a maintainer, but haven't accepted the invite yet, and was asked to use ngit init again. I couldn't figure out how to accept, so ran ngit init. Once I did that, I think it just created another repo under this npub and any pushes just go to that repo instead of the original one

I want to publish repos using the Unsigned profile, and then continue working using this profile, I don't understand how to do that yet

Is the repository 'keyboard'?nostr:naddr1qvzqqqrhnypzq4eszr4s7slulsjnc2y4s2xnp0mf8xc9vwzw9nrxfr6qp94v4m6wqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsqzrtv4ukymmpwfjqh0ukvh

Your npub is listed as a maintainer but it hasn't issue an announcement event which 'accepts' the invite.

This means you haven't successfully run `ngit init` under this npub. Maybe you ran it again under the other npub thus just updating the announcement? Run `ngit account login` to switch accounts before running `ngit init.

Reply to this note

Please Login to reply.

Discussion

This UX needs to be tightened up. Maybe it should detect that the signed in account is attempting to push to a repo that they have been added to as a mantainer and auto accept the invite (issue an announcement event listing the other maintainers) before completeing the push.

also have a GUI to manage this eg in gitworkshop this would be nice.

yes that's the repo. i am sharing some terminal output for you to see if it's working fine

basantagoswami@asus:~/Workspace/UnsignedLabs/keyboard$ ngit account login

✔ logged in to local git repository as basantagoswami · remain logged in

basantagoswami@asus:~/Workspace/UnsignedLabs/keyboard$ cat .git/config

[core]

repositoryformatversion = 0

filemode = true

bare = false

logallrefupdates = true

[user]

email = 36882714+basantagoswami@users.noreply.github.com

[remote "origin"]

url = nostr://npub1gmm2ehusvs35zgh6pq84m8hkj4ea0ygy3c9j2e3slzhjjce3kmns5tdaz2/relay.damus.io/keyboard

fetch = +refs/heads/*:refs/remotes/origin/*

[branch "main"]

remote = origin

merge = refs/heads/main

[nostr]

repo = naddr1qqyxketevfhkzunyqgsyda4vm7gxgg6pytaqsr6anmmf2u7hjyzguze9vcc03tefvvcmdecrqsqqqaueky2g8v

bunker-uri = bunker://[REDACTED]?relay=wss://relay.damus.io

bunker-app-key = [REDACTED]

npub = npub1gmm2ehusvs35zgh6pq84m8hkj4ea0ygy3c9j2e3slzhjjce3kmns5tdaz2

basantagoswami@asus:~/Workspace/UnsignedLabs/keyboard$ ngit init

fetching updates...

✘ wss://relay.nostr.band timeout after 7s timeout

✔ wss://relay.snort.social/ no new events

✔ wss://gitnostr.com no new events

✔ wss://relay.mostr.pub no new events

✔ wss://nos.lol no new events

✔ wss://relay.ngit.dev no new events

✔ wss://relay.damus.io no new events no updates

searching for profile updates...

✘ wss://relay.nostr.band timeout after 7s timeout

✔ wss://relay.damus.io no new events

✔ wss://relay.snort.social/ no new events

✔ wss://relay.mostr.pub no new events

✔ wss://nos.lol no new events logged in as basantagoswami to local repository

? repo name (keyboard) › CTRL+C

basantagoswami@asus:~/Workspace/UnsignedLabs/keyboard$ cat ~/.gitconfig

[init]

defaultBranch = main

[core]

editor = code --wait

[diff]

tool = vscode

[difftool "vscode"]

cmd = code --wait --diff $LOCAL $REMOTE

[merge]

tool = vscode

[mergetool "vscode"]

cmd = code --wait $MERGED

[cinnabar]

version-check = 1729936304

[nostr]

bunker-uri = bunker://[REDACTED]?relay=wss://relay.damus.io

bunker-app-key = [REDACTED]

npub = npub12ucpp6c0g070cffu9z2c9rfsha5nnvzk8p8ze3ny3aqqj6k2aa8q0c52sm

if i continue here, it's not clear what will happen

? repo name (keyboard) ›

i think i did it last time and then when i did git push, it showed up in the new repo that was created under this npub, instead of the original one. am i supposed to see the ? repo name prompt?

You CTRL-C exited the interactive `ngit init` command before publishing the event. `? repo name (keyboard) > ` is a prompt for the name of the repo, defaulting to 'keyboard'. So press enter to continue.