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

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -