I have gone through the process of moving my dotfiles under version
control using git, and github.
However, there are some things in my dotfiles that I don't want
published up to github, such as my github.token parameter in my
~/.gitconfig file.

After pondering the problem I came to the the solution of using a
branch called publish that pushes
to the master branch of my github repo.  Then I can use a bit of
scripting magic to merge changes
from my local master and redact all the sensitive information into my
local publish branch, then push the publish branch to the github
master.

However, I don't want to accidentally push the master branch up to
github which would contain some sensitive info.  If I were to 'git
push' on master instead of 'publish' then I'm in trouble.  So the
question is: Is there a way to prevent my local master branch from
pushing up to the github master by default when I just run 'git push'?

Thanks in advance,
Michael Grubb

-- 
You received this message because you are subscribed to the Google Groups 
"GitHub" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/github?hl=en.

Reply via email to