Suppose the following scenario:
I have a git project that has a dir named project
. Inside this dir I made some commits.
Then, with cp -r
I duplicated this dir to a dir called project-with-feature-b
, i.e. I manually created a branch.
Now I want to merge these two folders like if they were two branches, is there any way to do that using git?
To be more specific to my problem. I have a svn repository which I am using with git-svn tool to clone it. And I cant use the -T/-b/-t options but I want to make a merge.
project
andproject-with-feature-b
and then do agit pull project-with-feature-b
inproject
?project-with-feature-b
's story to improve the merge.git pull --rebase project-with-feature-b
? It should save the combined history of your two projects..git
folder already exists so he can in fact commit in the "branch" project folder.