I'm learning Git and implementing it across all my projects. I've successfully installed Git on my local machine, created git repo's for each project, and started pushing all the commits to my bitbucket account for each project.
Now, all of these projects are already live on my production server, where they do not have the corresponding git repo's... yet.
What I'd like to do is be able to pull down commits from bitbucket for each corresponding project so that changes are reflected... and also sets up the git repo on the production server for that project as well.
I hope I explained that right. I'm using SSH and I'm able to git init
... also tried git pull
and git fetch
... but then when I try to git status
after the pull or fetch.... it shows all my files on the production server as untracked. However, they should be already tracked as reflected on my bitbucket repo. Right?
I'm a little confused as to how to do this properly despite hours of reading. Any help or direction pointing would be great!