I had difficulties with git and netbins.
Here is the course of my actions:
On hosting:
- Creating a repository in the existing
git initdirectory - Adding all
git add ...files and foldersgit add ... - First commit
git commit -m 'initial project version'
By local machine:
I clone the repository on ssh:
sudo git clone ssh://user @host /path/to/project/ /local/path/to/projectI create a project with existing code in Netbeans. Everything is created, Netbeans pulls up git,
masterappears on the project name.But all files in Netbeans are read-only. I solved this problem only by passing all 777 permissions to the files with the command
sudo find /local/path/to/project -type f -exec chmod 777 {} +
Is it normal that all project files on the local machine now have 777 permissions? If not, how to fix it?
PS put all 775 rights, Netbeans could no longer edit files.
sudo git clone,so this is quite expected. Make agit clonewithoutsudoand everything should be fine. - Costantino Rupert/localfolder (in the root!), Which, naturally, cannot be done without having superuser privileges. That is, roughly speaking, the system tried to warn you that you are most likely trying to do something wrong, but you plugged it in by typingsudo:) - Trygit clone REPOSITORY_URL /usr/local/path/to/project. - Costantino Rupertwww-datauser to distribute sites, and it is customary to develop in / home / <username> / [source | src | projects | etc] as their user. - pirj