git - How can I transfer the commit history of a repository to another repository? -


i've spent few months working on project. broke, started new project , transfered files, transfer commit history new repository/project? little familiar git. command line codes need transfer commit history?

basically want add new remote, in old project need add new remote:

$ git remote add origin git@remote-path/project.git 

then run:

$ git remote -v 

and should have 2 remotes.

if have error:

fatal: remote origin exists. 

just use other name remote:

$ git remote add new-origin git@remote-path/project.git 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -