LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2021, 09:44 AM   #1
pnotz17
LQ Newbie
 
Registered: Apr 2021
Posts: 7

Rep: Reputation: Disabled
can somebody explain pass integration with git a little better?


so ive been using pass for a while know and i still dont understand how to use it with git do you need 2 keys?im asking this because i might want to move to another pc,what is the best way to go about this. id be nice if i could just clone my repo and gpg key that i have now and badabing im done
 
Old 05-02-2021, 10:05 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by pnotz17 View Post
so ive been using pass for a while know and i still dont understand how to use it with git do you need 2 keys?im asking this because i might want to move to another pc,what is the best way to go about this. id be nice if i could just clone my repo and gpg key that i have now and badabing im done
Perhaps you can explain more clearly what you're trying to do and where you're stuck. I'm familiar with git and using a password to control access, also setting up the git global configuration not just for password, but also using SSH keys and such. But it's really unclear what exactly you need help with.
 
Old 05-02-2021, 10:37 AM   #3
pnotz17
LQ Newbie
 
Registered: Apr 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
Perhaps you can explain more clearly what you're trying to do and where you're stuck. I'm familiar with git and using a password to control access, also setting up the git global configuration not just for password, but also using SSH keys and such. But it's really unclear what exactly you need help with.
im just trying to have a back up of all my passwords,updating them and pushing them to git each time but how do i go about having those passwds on another computer. I am stuck with if i need two gpg keys, i have already created one which i use everyday. After i understand how to go about saving the gpg key in git isnt this what i have to do?

cd .password-store
pass git init
git remote add origin https://github.com/USER/pass-store
pass git push -u --all

Last edited by pnotz17; 05-02-2021 at 11:10 AM.
 
Old 05-02-2021, 10:39 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
@rtmistler. pass the OP means is this.
 
Old 05-02-2021, 11:01 AM   #5
pnotz17
LQ Newbie
 
Registered: Apr 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
ok so i pushed all my passwds now if i go to another pc and clone the repo will the same passwd that im using now work?
 
Old 05-02-2021, 11:04 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
On each station you need to have your GPG key. Easiest thing to do is to copy the one you generate at the first machine and use that on you second machine. Once both Git configs are set up, you should be able to push and pull from either.
 
Old 05-02-2021, 11:34 AM   #7
pnotz17
LQ Newbie
 
Registered: Apr 2021
Posts: 7

Original Poster
Rep: Reputation: Disabled
SOLVED thank you

https://makandracards.com/makandra-o...ferent-machine
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 04:50 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
Can somebody explain the following error message to me please bugsbunny Linux - Newbie 4 04-06-2004 04:51 PM
can somebody explain the different components of a linux system? sunowww Linux - General 4 03-14-2004 06:18 PM
Tar/Tapes: Can somebody explain this to me...... TheDirtyPenguin Linux - General 3 03-09-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration