Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. git error into public directory

git error into public directory

Scheduled Pinned Locked Moved Solved LAMP
3 Posts 2 Posters 486 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reddy
    wrote on last edited by
    #1

    Hi guys,

    i m facing an issue using git in the public folder of LAMP

    the error is whatever i try any git command:

    fatal: detected dubious ownership in repository at '/app/data/public'
    To add an exception for this directory, call:

        git config --global --add  safe.directory /app/data/public
    

    When i try the previous command i got another error:

    error: could not lock config file /root/.gitconfig: Read-only file system

    Using sudo didn't solve my issue.

    Thank you for your help

    1 Reply Last reply
    1
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by robi
      #2

      try setting the HOME env var like so:
      export HOME=/app/data

      then retry the git command

      Conscious tech

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Reddy
        wrote on last edited by
        #3

        Thank you.

        Did solve my issue.

        Cheers

        1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • nebulonN nebulon has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search