You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[user]
name = personal_user
email = personal_email
And $HOME/.gitconfig-work:
[user]
name = work_user
email = work_email
I also have personal and work Sync Settings profiles:
settings.yml for personal profile:
hostname: ""
profile: personal
repository:
type: git
url: https://github.com/<personal-username>/editor-settings.git
branch: main
And settings.yml for work profile:
hostname: ""
profile: work
repository:
type: git
url: https://github.com/<work-username>/editor-settings.git
branch: main
And when I'm switched to the work Sync Settings profile and using Sync Settings: Upload (user -> repository) command in VSCodium, I want to push those work settings to my work github account only and of course, I want my work git name and email to be used from the corresponding git config.
Of course, this setup does not work, it is more for what I want to achieve. Is there a way to achieve this somehow not necessarily having the exact setup?
The text was updated successfully, but these errors were encountered:
The remote git create a local git in VSCodium's global storage. So the includeIf of .gitconfig won't match.
You could use a local git under your directories (ex: ~/personal/editor-settings). But you would need to manually push or add hooks to do the pull/push (not tested, what about the commit message??)
But the best would be to add options either directly in the settings.yml or to include a simple .gitconfig-personal file.
I will have to free some time since a bunch of feature requests are piling up...
I see, thanks for the quick response, this is not urgent for me as I'm currently using VSCodium only for personal projects and VSCode for work related ones (due to some extensions I have to use at work), but in the future I would like to completely get rid of VSCode :).
Would be great to have some simpler solution to such problem, but thanks for the advice with the local repos.
Hi.
For example:
I have
$HOME/.gitconfig
:$HOME/.gitconfig-personal
:And
$HOME/.gitconfig-work
:I also have personal and work Sync Settings profiles:
settings.yml
for personal profile:And
settings.yml
for work profile:And when I'm switched to the work Sync Settings profile and using
Sync Settings: Upload (user -> repository)
command in VSCodium, I want to push those work settings to my work github account only and of course, I want my work git name and email to be used from the corresponding git config.Of course, this setup does not work, it is more for what I want to achieve. Is there a way to achieve this somehow not necessarily having the exact setup?
The text was updated successfully, but these errors were encountered: