DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Arnaldo Gabriel
Arnaldo Gabriel

Posted on

One-liner to prevent accidental pushes to public repositories

Note to self

One-liner to disable remote pushing. Useful to prevent accidental pushes to public repositories.

git remote set-url --push origin no_push

Top comments (0)

πŸ—£ Want to join the conversation?

Β 
It's easy! Become a DEV member to follow this post, comment, and more.