I
I
Ivan ANTIKLAN2015-04-23 22:18:10
git
Ivan ANTIKLAN, 2015-04-23 22:18:10

How to hide/isolate branches in Git?

Hello!
I have a git controlled project. The master branch contains files with standard settings. The test branch contains a customized version with all logins and passwords.
How to make it so that when cloning a repository, only one master branch is cloned, and the rest of the branches are not even visible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yakhnenko, 2015-04-23
@ayahnenko

storing logins with passwords in a repository is like going to a gay bar with a bare ass.
delete, write to .gitignore, and don't do it again.

V
Victor, 2015-04-23
@v_decadence

Only if you do not push this branch, otherwise nothing.
Or push it to some other repository to which no one has access, but this is already some kind of nonsense.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question