$ git config --global user.name "TrueMe"
>> --global //Global setting
$ git config --global user.email "trueme@gmail.com"
$ git config user.name "TrueMe"
$ git config user.email "trueme@gmail.com"
After config username/email of local git you can check again info
Go to D:/YourFolder/.git/ open config file and you can see
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://github.com/quocvo87/MappingArray.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main
[user]
name = quocvo87
email = quocvo87@gmail.com
Go to your branch
PC93@User MINGW64 /d/Projects/TrueMe (task/Branch_A)
$ git checkout task/Branch_B
Setting config default branch
PC93@User MINGW64 /d/Projects/TrueMe (task/Branch_B)
$ git config push.autoSetupRemote true
Push code
PC93@User MINGW64 /d/Projects/TrueMe (task/Branch_B)
$ git push
warning: redirecting to https://gitlab.trueme.vn/source_A.git/
Everything up-to-date