0

Hello Stack Overflow community,

I have configured a git server on my Raspberry PI 2 with the current Raspian Image (March 2018).

In my git repro I have two branches:

git@raspberrypi:~/database.git$ git branch
comments
*master

If I merge the 'comments' branch into the 'master' I get the following error message:

git@raspberrypi:~/database.git$ git merge comments
fatal: This operation must be run in a work tree

What am I doing wrong here?

Thank you,

Marc

HerrTux
  • 1
  • 1
  • 1
    Is it possible that you're using a bare repository? See https://stackoverflow.com/questions/1456923/why-am-i-getting-the-message-fatal-this-operation-must-be-run-in-a-work-tree – Fang Apr 02 '18 at 21:14
  • As others have said, you appear to be using a bare repository. It's not recommended or useful to make code changes inside of the bare repo. Clone the repository elsewhere, make your changes, merge, and push back into the bare repo. – Max Friederichs Apr 02 '18 at 22:14
  • Thanks all, cloning the repro is the best way – HerrTux Apr 03 '18 at 18:27

0 Answers0