You can change the origin of a repo as follows:
git remote set-url origin [email protected]:root/securessh.git
Test it:
[email protected]es:~/securessh# git remote set-url origin [email protected]:root/securessh.git [email protected]:~/securessh# git push The authenticity of host 'gitfactory.droidzone.in (74.121.151.150)' can't be established. RSA key fingerprint is 97:1d:fa:f8:5f:42:6c:fb:f2:e8:17:a1:8e:99:cb:c5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'gitfactory.droidzone.in,74.121.151.150' (RSA) to the list of known hosts. Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 426 bytes, done. Total 3 (delta 1), reused 3 (delta 1) To [email protected]:root/securessh.git 5446e24..0675043 master -> master
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.