kamilsk / dotfiles

🗂 My dotfiles for productive work.
MIT License
4 stars 0 forks source link

git: push: avoid fork-* #509

Closed kamilsk closed 1 year ago

kamilsk commented 1 year ago

Motivation: forks are unavailable to pushing.

$ push
To github.com:DimovyM/web-tact.git
 ! [remote rejected] main -> main (permission denied)
 ! [remote rejected] v0.0.1 -> v0.0.1 (permission denied)
 ! [remote rejected] v0.0.2 -> v0.0.2 (permission denied)
 ! [remote rejected] v0.0.3 -> v0.0.3 (permission denied)
 ! [remote rejected] v0.0.4 -> v0.0.4 (permission denied)
 ! [remote rejected] v0.0.5 -> v0.0.5 (permission denied)
 ! [remote rejected] v0.0.6 -> v0.0.6 (permission denied)
error: failed to push some refs to 'github.com:DimovyM/web-tact.git'

The better way is to exclude forks from push.

kamilsk commented 1 year ago

https://stackoverflow.com/questions/7556155/git-set-up-a-fetch-only-remote

kamilsk commented 1 year ago

also, add git please support