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

enter image description here

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -