Switches between different git profiles.
Change Github private keys on demand, write a cli tool to do it
Check if the command is running in sudo mode, if not return 1- List the available profiles.
- Lets user navigate the profile and select the appropriate one.
- Should be as if the user has made the actual commits, commits should be signed.
- 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.
- User then goes to GitHub and pastes the public key.
- 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