
Make sure you follow me on Twitter for more up-to-date news, articles and tips. (notice the 2 dots one before and one after) Right click and add a new Text Document.You can create hidden files using the Windows Explorer by following these steps: One that requires no CMD and can be done in the GUI for those of us that prefer the use of mouse and windows.

cd c:\Īccept the prompt to create the file, edit the contents accordingly, save and close.Īpparently real people and not just bots or crawlers visit my blog! Thanks to them (in the comments below and on Twitter) I now have a second solution to our problem. In this instance we'll assume you need a. Alternatively, if you're already on the desired directory in the Explorer, you can Alt+RighClick and use Open Command Prompt from the context menu (pro tip!). gitignore) is to open the Command Prompt and navigate to the directory you need to create your file. One easy and fast way to create files with a prepending (.) in the name (e.g. By default, Windows Explorer does not allow you do this in the GUI.

If you ever needed to create a hidden file (.)filename on Windows then you'll have noticed that it's not particularly intuitive or easy to do. Then if you want to get rid of that target folder in your remote repo you will need to first manually delete this folder from your local repository, commit and then push it.
#Add gitignore mac#
On the Mac (should be similar to Windows), go to menu bar: Repository -> Repository Settings -> Ignored Files. As already pointed out in comments by Abhijeet you can just add line like: /target/. gitignore and other hidden files on Windows 30 December 2016 You can do it through the GitHub Desktop client UI.
