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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -