git - How to safely change github account name? -
i change github account name, found option in github account settings.
however, concerned consequences , know best strategy of name change, considering have projects of own tied account.
so far, came plan:
- change account name in github settings
- for each project's local folder in '.git / config' file update remote "origin" url new one
will work? should there further steps on computer holds project sources? effect of name change on cloned or forked projects on github?
thank you!
1.) have change projects remote addresses. can see them via:
git remote -v after remove old remote addres:
git remote rm git@github.com:old_account/foo.git finally add new remote address:
git remote add origin git@github.com:new_account/foo.git 2.) cloned repos break. there no url-redirect or similar. can change local cloned repos, others have point new repo addres(like in step 1)
note: github forked repos works without problem.
Comments
Post a Comment