Conversation

Jarkko Sakkinen

Another git setting I realized that I want to have:

❯ git push
fatal: You didn't specify any refspecs to push, and push.default is "nothing".

Helps to keep focus imho :-)
1
0
2

@jarkko

I do something like this in my development repos for kernel upstreams to avoid accidental pushes:

$ git remote set-url --push origin "no push"

And then I have a separate checkout for maintainer stuff.

fatal: 'no push' does not appear to be a git repository

0
0
1
@oceanhaiyang hmm... can you elaborate this a bit? not sure i follow.
0
0
0