📜  store pass git - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:20:21.309000             🧑  作者: Mango

Store Pass Git - Shell-Bash

Store Pass Git is a shell script designed to ease password management while working with Git repositories. It securely stores passwords for Git remote repositories and automatically retrieves them when needed without user intervention.

Features
  • Secure password storage using OpenSSL AES library.
  • Automatic retrieval of passwords when pulling or pushing to remote repositories.
  • Easy installation and configuration.
  • Cross-platform support.
Installation
  1. Clone or download the Store Pass Git repository to your local machine.
  2. Run the install.sh script to install Store Pass Git.
  3. Follow the instructions in the prompts to complete the installation.
Configuration

Once installed, you need to configure Store Pass Git to work with your Git repositories.

Initialize Store Pass Git

Before using Store Pass Git with your Git repositories, you need to initialize it with a passphrase that will be used to encrypt the passwords.

store-pass-git init
Add a Repository

To add a new repository, you need to specify the Git URL and the corresponding access username and password. Store Pass Git will securely store the credentials.

store-pass-git add [git-url] [username] [password]
Remove a Repository

To remove a repository from Store Pass Git, you can use the following command:

store-pass-git remove [git-url]
List Repositories

You can list repositories that have credentials stored in Store Pass Git:

store-pass-git list
Usage

Once Store Pass Git is configured, you can use Git commands as usual. Store Pass Git will automatically retrieve the stored credentials and use them to authenticate with the remote Git repository.

git pull
git push
Conclusion

Store Pass Git is an easy-to-use and secure password management solution for Git repositories. It simplifies the process of storing and retrieving passwords, allowing programmers to focus on their work without worrying about password management.