First of all, yes there are a lot of topic out there and it is overwhelming to the point that I get more confused rather than pin-pointing out the right stuff.
For starters, I am learning git and trying to apply it to my first project.
My set up is like this:
Remote Repository: Linux /opt/projectFolder
Note that the projectFolder
contains initial files in it.
The following command I run:
git init --bare
<-- doesnt work, it seems I am having errors because I have a config
folder which my project uses, so it conflicts with the git, i don't know how to fix it.
So what I did is:
> git init
> git add .
> git commit -m"Initial Files"
> git --bool core.bare true
That worked without any errors, now for
Local Repository: Win10 C:/git/projectFolder
I run:
> git clone user@192.168.xx.xx:/opt/projectFolder
it cloned the repository successfully, now I tried to edit some text file from the initial files with it and then i run:
> git add .
> git commit -m"Test commit"
> git push
when I checked the linux remote repo the changes on the files didn't reflected BUT if I clone it on other computers the changes are reflected
What am I doing wrong or missing?