I am new to git, Just i want move my project work to Git for version control. Before moving/using Git I am doing testing.
Note: we are not using Public/Private github. We are using own git reposity server.
I have shared directory "/share"
I have created bare repostory like below:
git init --bare /share/centralproject.git
I have created local repo:
cd /share/local
#create two files hello.py and README.md
git init
Locally I have staged and commited like below:
git add .
git commit -m "Commit 1"
Added remote repo like below:
git remote add myremoterepo file:///share/centralproject.git
git push myremoterepo master
I did not see any of my files (local repo files hello.py and README.md) in remote repository that is under "/share/centralproject.git"
what i am trying to achieve here is all my codes must reside in central directory in my case "/share/centralproject.git".
We have 10 developer, These developers are going to check in there codes from local repo to remote repository in my case again "/share/centralproject.git"