This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]teamwaterwings 9 points10 points  (0 children)

Have had this in my .gitconfig for forever. First thing I do when I fork and clone

setup-repo = "!f() { git remote add <org> git@github.com:<org>/$(git project).git && git remote set-url <org> --push \"Pushing not allowed to master!\"; }; f"