I have two repositories:
~/.gitconfig
[includeIf "gitdir:~/Documents/.repoA"]
path = .gitconfig-repoA
[includeIf "gitdir:~/Documents/.repoB"]
path = .gitconfig-repoB
And then, to avoid repeating tokens each time I have to push/pull something, I write this file
.gitconfig-repoA
[user]
email = emailA@smtp.com
name = myName
[credential]
helper = store
.gitconfig-repoB
[user]
email = emailB@smtp.com
name = myName
[credential]
helper = store
But I have to type my token each time yet... How should I do to avoid that?