I need to copy an existing git repository to a new branch on an existing git repository I tried
git branch new_branch git checkout new_branch git remote add project url/to/existing/repo git fetch But it doesn't work, I need to preserve the commit history :)