Jump to content
2 minutes ago, SCHISCHKA said:

but does this transfer to all git users or does it just work for me?

That specifies files that git should pretend aren't there - as in, if you commit, it won't commit that file. 

 

So, anyone looking at the repo won't see the file, because it won't be there. They'll be able to see you've ignored a filed named whatever you file is named, but not the file itself 

Link to comment
https://linustechtips.com/topic/718710-api-keys/#findComment-9154473
Share on other sites

Link to post
Share on other sites

12 minutes ago, obi-fade-kenobi said:

That specifies files that git should pretend aren't there - as in, if you commit, it won't commit that file. 

 

So, anyone looking at the repo won't see the file, because it won't be there. They'll be able to see you've ignored a filed named whatever you file is named, but not the file itself 

yes that is fine for me but what can i do about other users accidentally publishing api keys?

             ☼

ψ ︿_____︿_ψ_   

Link to comment
https://linustechtips.com/topic/718710-api-keys/#findComment-9154550
Share on other sites

Link to post
Share on other sites

2 minutes ago, SCHISCHKA said:

yes that is fine for me but what can i do about other users accidentally publishing api keys?

You mean other contributors? The same will apply to them 

 

Quote

A .gitignore file should be committed into your repository, in order to share the ignore rules with any other users that clone the repository.

 

Link to comment
https://linustechtips.com/topic/718710-api-keys/#findComment-9154571
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×