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.
Login to reply
Replies (2)
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.