📜  github ue4 gitignore - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:00:58.302000             🧑  作者: Mango

Github UE4 Gitignore - Shell/Bash

As a programmer using Unreal Engine 4 (UE4), you may have encountered some problems with Git when it comes to ignoring certain files during version control. This is where the Github UE4 Gitignore comes in handy!

The Github UE4 Gitignore is a shell/bash script that automates the process of creating a .gitignore file specifically for UE4 projects. This script generates a list of file types and folders that are commonly excluded from version control for UE4 projects.

Installation

To install the Github UE4 Gitignore, simply run the following command in your terminal:

curl https://raw.githubusercontent.com/github/gitignore/master/UnrealEngine.gitignore -o .gitignore

This will download the Gitignore file and place it in the root directory of your UE4 project. You can also manually create a .gitignore file and copy and paste the contents from the Github UE4 Gitignore repository.

How to Use

The Github UE4 Gitignore is designed to automatically ignore files that are not necessary for version control, such as intermediate files and build artifacts. It also includes optional exclusions for files that are specific to your project setup.

To use the Github UE4 Gitignore, simply include it in your UE4 project repository and let Git do the rest. Any files or folders listed in the Gitignore will not be tracked by Git, ensuring a clean version history.

Examples

Here is an example of what a .gitignore file generated by the Github UE4 Gitignore might look like:

# Unreal Engine 4
Saved/
Intermediate/
DerivedDataCache/
*.VC.*.db
*.opensdf
*.opendb
*.sdf
*.sln
*.suo
*.xcodeproj
*.xcworkspace
Binaries/
Build/
Config/
Content/Developers/
Content/Saved/
Content/Config/
*.log
*.tmp
.DS_Store
.DS_Store?
*.DS_Store
Thumbs.db
UserSettings/
.idea/
[Bb]in/
[Oo]bj/
[Dd]ebug/
[Rr]elease/
*.dll
*.lib
*.exe
*.pdb
*.ilk
*.aps
*.ncb
*.opt
*.plg
*.user
*.tlog
*.log
*.vb#
Debug/
Release/
Conclusion

The Github UE4 Gitignore is an essential tool for any UE4 developer using Git for version control. By automatically excluding unnecessary files and folders, you can ensure a clean version history and avoid conflicts with team members. Try it out today!