Skip to content

kmarrip/git-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-profile

Switches between different git profiles.

Change Github private keys on demand, write a cli tool to do it

  1. Check if the command is running in sudo mode, if not return 1
  2. List the available profiles.
  3. Lets user navigate the profile and select the appropriate one.
  4. Should be as if the user has made the actual commits, commits should be signed.
  5. Easiest way to do this is using SSH keys, create a cli tool to generate ssh keys (private and public) and then store the private key locally, copy the public key to clipboard.
  6. User then goes to GitHub and pastes the public key.
  7. Now the user should be authenticated based on the public-private key pair, all the commits should be signed before pushing to remote.

Update: manually worked on adding ssh keys to github.com for authenticating and signing keys

Update: To generate SSH keys -->link
To add SSH keys to github account --> link
For signing commits locally --> link

About

Switches between different git profiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages