P
P
pegas2018-10-22 17:29:50
git
pegas, 2018-10-22 17:29:50

How to automatically switch to a branch when cloned?

How to set up a configuration file for git so that when cloning a repository, it automatically switches not to the master branch, but to another one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2018-10-22
@POS_troi

If I understand the question correctly then
git symbolic-ref HEAD refs/heads/YOU_BRANCH_NAME

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question