GIT --bare with existing files

0

I am creating a git server repository, so that the team can commit changes directly to the server, but some files that are on this server should be sent when a user downloads the repository. Is it possible to do that? In fact the project already existed but GIT was not used.

    
asked by anonymous 27.07.2016 / 19:14

1 answer

1

Actually, there are two distinct steps:

  • Create your repository with git init --bare ;
  • Initialize git in your existing project directory, add the repository from step (1) as a remote and push your code.
  • 27.07.2016 / 19:54