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

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -