WeSearch

1Password, GitHub, and Git CLI with Multiple Users

·3 min read · 0 reactions · 0 comments · 4 views
#git#github#cli#1password#development
1Password, GitHub, and Git CLI with Multiple Users
⚡ TL;DR · AI summary

The article explains how to configure Git, GitHub CLI, and 1Password CLI to automatically use different user identities for personal and work projects based on directory location. It outlines steps to set up separate Git configurations and SSH keys for projects in designated folders like ~/code and ~/oss. The integration with 1Password allows secure, context-aware authentication using different personal access tokens.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 828306) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Sean Boult Posted on May 1 1Password, GitHub, and Git CLI with Multiple Users #github #cli #1password #tooling Do you use the git, github, and 1password CLI? I do! I want to be able to act as different users in certain directories to support my personal projects (~/code) and my work projects (~/oss) automatically, because, you know, developers automate everything.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)