Difference between revisions of "password-store clone failsauce"

From thelinuxwiki
Jump to: navigation, search
(Created page with " passwordstore ==clone existing password store== pass git init git remote pass git remote add origin corsair:/path/to/.password-store/ git remote pass git pull pass git p...")
 
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
password-store
  
 +
'''goal:''' migrate password store from on computer to another.
 +
'''steps:'''
 +
#migrate gpg private key
 +
#clone pass git repo
  
  
passwordstore
 
  
==clone existing password store==
 
  
pass git init
+
 
git remote
+
==problem==
pass  git remote add origin corsair:/path/to/.password-store/
+
"pass git clone" command failing with error...
git remote
+
  $ '''pass git clone user@192.168.1.1:/path/to/.password-store .'''
pass git pull
+
Error: the password store is not a git repository. Try "pass git init".
pass git pull master
+
 
git status
+
==solution==
git branch --set-upstream-to=origin/master master
+
 
pass git pull
+
 
pass git pull
+
Emil Lundberg [https://password-store.zx2c4.narkive.com/ilgravLL/pass-git-clone (taken from here)]
pass git clone user@192.168.1.1:/path/to/.password-store .
+
 
 +
Why not clone it with plain old Git?
 +
 
 +
I read that and just ran the same command minus "pass" and it worked
 +
 
 +
$ '''git clone user@192.168.1.1:/path/to/.password-store .'''
 +
Cloning into '.'...
 +
Password:
 +
remote: Counting objects: 961, done.
 +
remote: Compressing objects: 100% (760/760), done.
 +
remote: Total 961 (delta 324), reused 564 (delta 191)
 +
Receiving objects: 100% (961/961), 204.06 KiB | 0 bytes/s, done.
 +
Resolving deltas: 100% (324/324), done.
 +
 
 +
 
 +
==links==
 +
[https://medium.com/@chasinglogic/the-definitive-guide-to-password-store-c337a8f023a1 The Definitive Guide to password-store]

Latest revision as of 21:27, 24 July 2019

password-store

goal: migrate password store from on computer to another. steps:

  1. migrate gpg private key
  2. clone pass git repo



problem

"pass git clone" command failing with error...

$ pass git clone user@192.168.1.1:/path/to/.password-store .
Error: the password store is not a git repository. Try "pass git init". 

solution

Emil Lundberg (taken from here)

Why not clone it with plain old Git?

I read that and just ran the same command minus "pass" and it worked

$ git clone user@192.168.1.1:/path/to/.password-store .
Cloning into '.'...
Password: 
remote: Counting objects: 961, done.
remote: Compressing objects: 100% (760/760), done.
remote: Total 961 (delta 324), reused 564 (delta 191)
Receiving objects: 100% (961/961), 204.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (324/324), done.


links

The Definitive Guide to password-store