Git: creating a new branch and disabling push

To create a new branch: git checkout -b [newbranch_name] To disable pushes only for a branch: git config branch.branch_name.remote no_push If the branch is a local dev branch, it won’t be pushed by default; git push (no arguments) pushes only branches that exist locally and on the remote. If you try to push it, you’ll… Continue reading “Git: creating a new branch and disabling push”