Every time I use git to commit to my repository, I need to type my username and keys. So how can I get rid of it?
First, type these:
git config --global user.email "your git email"
Then type these:
git config --global credential.helper store
store means save the keys and username forever until you manually delete them.
If you want it to save just for a certain time, you can type:
git config --global credential.helper cache
cache means 15mins.
git config credential.helper 'cache --timeout=3600'
This means 2 hours.