How to protect my account from unauthorized`pushs`?

Asked

Viewed 95 times

2

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

Assuming I leave the company and leave the setup ready, how can I block a new programmer erase my entire project or make a push improper?

I saw some options to protect ramos, but even though I am protected, I can do the pushes normally, just by stating my name and the url of the project.

How do I ask for password at every push? Thank you.

1 answer

2


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

On Github when you clone from https, whenever you interact with the remote repository you will be prompted for your account password. If no authentication is requested, you probably set up an ssh key in your repository and clone it via git protocol.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.