github - How to change the username in gitbash -
i trying push files repository using different username , password keeps on showing previous profile's username everytime push
see artistic-developers
previous username , should replace current username.
what should do?
at first should check username , email have configured git client with.
- to check email:
git config user.email
- to check name:
git config user.name
if both show new desired values, you should aware of fact push using new account not mean commits created new account. check username , email in history use git log
.
if want change username , email latest commit can use:
git commit --amend --reset-author
if have more commits work with, can use git rebase
note changing committer result in different commit hash , should avoid doing branches have shared others.
Comments
Post a Comment