I have authorization by public_key to remote repo and I can get everything from http://someurl/first.git on my local machine, but I have to populate this changes to other environments. To make it possible I have to put there my private_key, clone repo and switch to specified tag. But I don't want to do it because of security reasons.
I'm thinking about creation of my local repo http://someurl/second.git, committing all changes to it and deploy. But I have now idea how to add remote repo to my local? Is it possible? And how to commit to my local repo from remote and switch to needed tag?
git remote addcommand -git remote add second http://someurl/second.gitbut I'm not sure this is what you're looking for.