'Set up git credential helper store for different folder
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 = [email protected]
name = myName
[credential]
helper = store
.gitconfig-repoB
[user]
email = [email protected]
name = myName
[credential]
helper = store
But I have to type my token each time yet... How should I do to avoid that?
Solution 1:[1]
In C++17, this is a simple as
template <template <auto> typename T, auto N>
void f(T<N> ) { }
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
