- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
I exactly followed the procedure http://devdocs.magento.com/guides/v2.0/install-gde/prereq/dev_install.html#instgde-prereq-compose-cl... Hit error:
[magento_user@RHELPC /var/www/html]$ git clone -b master https://github.com/magento/magento2.git
fatal: could not create work tree dir 'magento2'.: Permission denied
Do I have to change the permission of /var/www/html/?
[magento_user@RHELPC /var/www]$ ll
total 20
drwxr-xr-x. 2 root root 4096 Dec 5 10:45 cgi-bin
drwxr-xr-x. 3 root root 4096 Dec 5 10:42 error
drwxr-xr-x. 3 root root 4096 Dec 5 10:45 html
drwxr-xr-x. 3 root root 4096 Dec 5 20:05 icons
drwxr-xr-x. 2 webalizer root 4096 Dec 5 10:45 usage
Thanks very much for help!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
Fixed now, it is permission issue. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
@APGD Solution please!!?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
I am looking for the exact same fix
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
Check that you are logged in as the right user who has full access to the installation directory.
Post your desktop screenshot so I can check and advise you better.
If this response was helpful to you, consider giving kudos to this post
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
The only issue is I don't remember how exactly I fixed it to post for
everyone else.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: git clone:fatal: could not create work tree dir 'magento2'.: Permission denied
Fantastic. Well done.
Don't forget to share the knowledge when you know how you fixed it exactly.
Cheers
If this response was helpful to you, consider giving kudos to this post