Hi there
For those of you wondering how to use git for your mods to not only get a version history but also be safe in case of any data loss or unwanted changes, here is a
.gitignore file which worked for me (definitive edition).
How to use (working directory is your Data path):
- Copy the dos2de.gitignore into your divinity data path usually found in "<Divinity Original Sin 2 Root>/DefEd/Data" and rename it to .gitignore
- If you have problems renaming the file to .gitignore, then use cmd or powershell to do so.
- cmd command is rename dos2de.gitignore .gitignore
- powershell command is mv dos2de.gitignore .gitignore
- Now let's start with the git stuff, initialise your repository with git init
- Set the remote origin to your git hosting platform by executing git remote add origin <url>
- Add all your mods to the version control by executing git add . (the dot is necessary)
- Commit your changes with an appropriate message via git commit -vm "initial commit"
- Push your changes into your remote repository with git push -u origin master
For any further changes you like to track use simply the following commands (working directory again the Data path):
- git add . (again dot is necessary)
- git commit -vm "message which describes your changes"
- git push