A
A
Alexander Sulimov2016-03-18 14:20:40
git
Alexander Sulimov, 2016-03-18 14:20:40

Git new and separate branch for remote repository - possible?

There is a local repository with several branches. There is a "personal remote" repository for it with all branches. I would like to create a new branch github.master with the current state of master and put it on github.
In the future, work with a local and personal remote repository, merge to github.master and push only github.master to github. Those. a separate public branch with no history until X and different branches.
Is it possible and how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2016-03-18
@aol-nnov

can.
make a separate branch and squash all old commits on it into 1.
then add another remote (github) and push it there

A
Alexander, 2016-03-19
@liff

git remote --help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question