Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to ignore .gitignore file itself?

Himanshu Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2018

In most of my projects i have a habit of keeping some utility files and other resources in some directory and add its name to .gitignore file to ignore them, but other collaborators may not have same set of gitignore file/directory list. Sometime I don't want others to see what my gitignore file content. So my motive is to put .gitignore file in the list of gitignore files/directory. Can someone help me in achieving the same.

3 answers

3 votes
Deleted user September 14, 2018

The solutions in this case is to have a global gitignore. It is not linked to repository  but it is linked to your global git configuration. It is like git settings, while the  gitignore in repository is  specific repository setting 

MaxymVlasov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2018

I agree with you.

Also attach simply instruction how it do

http://egorsmirnov.me/2015/05/04/global-gitignore-file.html

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 13, 2018

HI @Himanshu Kumar

Please have a look at the below article for details about the git Ignore.

https://community.atlassian.com/t5/Git-articles/Git-Basic-Commands/ba-p/866569

0 votes
Khushal Chheda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2018

@Himanshu Kumar you can read this post of stack overflow
https://stackoverflow.com/questions/767147/ignore-the-gitignore-file-itself

i hope this will solve your problem 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events