简体   繁体   中英

Where is, if it exists, a repo's .git or .gitconfig file?

I'm following the Unity 3D guide to enable SmartMerge in Git , but I'm quite confused. It literally says:

Add the following text to your .git or .gitconfig file

but I don't have any in my repo. I know there is a .gitconfig file which is global for the whole Git installation, and thus it doesn't seem very logic as a place to put repo-specific settings, and .git is a folder in git repos, not a file.

Where do I have to put those lines?

The file where you should put those lines is actually config in the .git folder. Don't know why the Unity docs are so confusing about this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM