GIT --Bare with existing files

Asked

Viewed 95 times

0

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

1 answer

1

Actually, it’s two distinct steps:

  1. Create your repository with git init --bare;
  2. Initialize git in your existing project directory, add step repository (1) as a remote, and push your code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.