I have existing project: my-project on both DEV and QA. Now I'm thinking of creating git repo so I can push the changes from DEV so QA can pull the changes. I don't want to delete my-project from QA and clone my-project from DEV to QA. So I am planning to do this:
On Dev:
$cd ~/my-project
$git init
$git add .
$git commit -m "My project"
$git remote add --track master origin ~/my-project
$git push
On QA:
$ cd ~/my-project
$git init
$git remote add origin ssh://Dev:~/my-project
$git pull
Will this work? Or do I miss anything? Any suggestions would be appreciated!