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

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -