git - Push a existing branch into a new repo -


i'm working on project have ui branch , services branch (not branching design). need separate them 2 distinct repos. trying find best way while preserving history , not having new repo track old one.

thanks in advance.

you first have add new remote repository: $ git remote add newrepo https://github.com/name.git

then push branch (yournewbranch) repository: git push newrepo yournewbranch:master

if master branch exists might force update or push other branch on new repository


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

string - Using python and postgres, variables within execute function? -