Git repo access on shared computer best practice

What is the best practice for accessing gitlab repo on a shared computer where you don’t have root access and are uncertain of security of security precautions?

In other words I don’t want my ssh keys taken but I do want to use a key so that I don’t have to enter my password frequently.