Need to use version control in one of the old project which resides in Amazon EC2 instance. Steps performed:
/www/box/
-
Installed GIT on the server and initialised the folder /box/
git init -
Cloned the project in local computer
-
Changed a file and tried to push but received error
git push origin master Error: Updating the current branch in a non bare repository is denied -
Then created another repo folder on server and used --bare tag to initialize
/www/repos/ git init --bare -
PUSH command works well on this repository
-
Then added another REMOTE URL to the old project location git remote add production ssh:---/www/box/
Questions:
-
git push gives me the same error when pushing on to the production repo. How do I push to this production repo?
git push production master Error: .... non bare repository is denied - found lots of tutorial using HOOKS, still confused if using HOOKS is a normal method to push in GIT
Aucun commentaire:
Enregistrer un commentaire