github account changing on windows
- username1, email@example.com
- username2, firstname.lastname@example.org
I am creating a repository on github.com with username1 account. Repository name is test. And I am pushing my files to repository. commands:
- Angular-Cli gitpages deploy deletes master and creates local of gh-pages branch
- What does green folder icon in github web interface mean?
- Troubles sharing my project from IntelliJ to GitHub (IntelliJ-GitHub permission denied, error= 13)
- Creating an orphan branch but still be able to merge from another origin
- Git Merge and Missing changes
- Error installing packages from github
- git remote add github email@example.com:username1/test.git
- git push origin master
And I am opening my github username1 account on github.com web site, and opening tets repository page, but index content modified by username2
I changed username, email from console but username2 is appearing yet.
Is it about ssh? What can I do? I am new.
One Solution collect form web for “github account changing on windows”
The GitHub user account which owns a particular repository can be different from the user that makes commits. (You can make commits in someone else’s repository if they give you permission, right?).
My bet is that your local user (which makes commits) is
username2. You’re able to make commits on a repo owned by
username1 because you have authorization to do so (you own it ).
You can check what your local git configuration is using for a username by either
git config --global --list OR
b) Opening ~/.gitconfig in an editor.
To update your global user name (applies for future commits in ALL local repositories) run,
git config --global user.name <username>.
I can see what the next question is going to be: “What if I want my local git user to change depending on which repository is checked out?” You need to add git configurations per repository. In your repo run
git config user.name <username> (Note the absence of the
global flag). You might also want to add
git config user.email <email> or any other repo specific settings you want.