TIP: creating .gitignore using sourcetree

if you find you cannot create a .gitignore file on widows 10 (file explorer complains)
you can use source-tree
after creating a local repository in your projects folder

A)
Select project Settings in sourcetree
Select Advanced
on repository specific ignore list – select edit
add the contents menitioned in the discussions
save

OR (harder - on windows)
B) before committing or by selecting the first commit
1.you can select a file under .import
2.on the actions menu select ignore (this can add to or create .gitignore)
3. select ignore everything beneth .import
4. press ok
close source-tree
open windows explorer (folder thingy) and find the .ignore file (may need to check Hidden files under the view menu)
choose open with
select notepad
copy the git stuff from the lecture notes and save the file
i.e.

Godot-specific ignores

.import/
export.cfg
export_presets.cfg

Mono-specific ignores

.mono/

2 Likes

Privacy & Terms