Create Git Ignore File with Nano Text Editor on Mac - VicPhanDevOps/mac GitHub Wiki
• Type git status
and press the return key to get the file you want Git to ignore.
•
• Type nano .gitignore
and press the return key to create the .gitignore
file in the Nano text editor.
•
• Type # ignore < filename >
file and press the return key to comment which file Git will ignore.
•
• Type the filename then press the control and X keys to exit.
•
• Press the Y key to save changes.
•
• Press the return key to save with the same filename.
•
• Type clear
and press the return key to clear the Terminal.
•
• Type git status
and press the return key and Git will now ignore the file you set it to ignore.
•