How do I protect my account from unauthorized push?

2

I'm starting to use the git repository through gitlab, but I'm using it on a company computer where I work.

Assuming that I leave the company and leave the configuration ready, how can I block a new programmer from erasing my entire project or making a push undue?

I saw some options to protect the ramos , but even being protected, I can do the pushs normally, only informing my name and the url of the project.

How to ask for password, at all push? Thank you.

    
asked by anonymous 19.04.2018 / 22:06

1 answer

2

How you will block access to your repository depends on how you made the repository clone.

In GitHub when cloning from https, whenever you interact with the remote repository you will be prompted for the password of your account. If no authentication is requested, you have probably set up an ssh key in your repository and made a clone through the git protocol.

To prevent unauthorized access, you need to change your GitLab password if you are using https authentication or revoke the ssh key of that company machine if you are using the git protocol.

    
19.04.2018 / 22:33