0

I'm fairly new to Git. I have two Git repos in GitHub, A and B.

'A' is the trunk and I have created a branch called 'B' and have done my developments. Now I want to all all my changes in ('B') to 'A'.

I did the following

git clone https://sameera207@github.com/A.git
cd A
git merge ../B (please note 'B' is in the same level as 'A')

But I'm getting the following error

fatal: '../B' does not point to a commit

What as I missing here, or is this not the correct approach?

halfer
  • 19,471
  • 17
  • 87
  • 173
sameera207
  • 16,347
  • 18
  • 83
  • 147
  • 2
    There is an answer here already: [http://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories][1] [1]: http://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories – Nguyễn Hoàng Gia Apr 07 '12 at 20:25
  • git is not subversion. It is completely different conceptually. For example, as git is very good at branching and merging, you wouldn't want or need to have a branch separated into a 2nd repo. At any rate this question has already been answered here: http://stackoverflow.com/questions/1425892/how-do-you-merge-two-git-repositories – gview Apr 07 '12 at 20:25
  • If you read the link you'd find that git subtree is not subversion either :) – Kevin Peno Jan 14 '14 at 22:02

0 Answers0