Dan.py
Dan.py

Reputation: 95

How to git clone --bare only one branch and update easily

I have a big web app project with hundreds of commits and multiple branches.

I want to have a test-server with very limited space that only needs to be able to download the last content of one branch to READ.

Is git clone --bare <url> --branch <branch> --single-branch the solution to my needs?

The problem I see here is that I cannot update easy the content as git pull will not work.

Upvotes: 1

Views: 518

Answers (0)

Related Questions