1

We have a zip file where all project(Laravel) files are stored. Since there is no known way of extracting files inside git, what we did was to extract the files, and then pushed the directory to git.

Everything is working except;

  1. empty folders were not uploaded, we added a .gitkeep file to all empty folders to keep them
  2. the permissions were not preserved. for this problem, we still havent found a solution.

Any advice related would be highly appriciated.

shehan
  • 11
  • 1

1 Answers1

0

You would need to chmod the files you want (like here), add, commit and push.

But keep in mind only 644 and 755 are versioned with Git.
You have scripts which can updates the permissions on changed files.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250