To keep things clear and simple we shall start with a fresh instance with minimal data, so that the changes are evident.
Within the directory create a new text file called
mycontent.txt
.Open up the text file that you just created, and enter the following:
Unchanged first line from source Second line Third line
Save and close the file.
Now make the
collab_source
directory a Git repository; then add the filemycontent.txt
and make a commit with a commit message saying "Base commit from source".Now this copy will reside in your machine for your own manipulation. Let's create a bare repository from your copy to put it in a common place from where your team members can clone it to have their own copy of the files.
For creating a bare clone of your existing repository, use the following command:
git clone --bare /your/path/to/collab_source /your/path/to/bare_collab