visual studio编译c++项目时“.gitignore“常用设置

用git进行代码管理时没有必要把和代码关系不大的东西都push到仓库,通过 .gitignore文件可以方便地管理那些不被上传, 下面是常用的设置。

# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

/.vs/
/x64/

posted @ 2022-08-21 10:12  Oliver2022  阅读(212)  评论(0编辑  收藏  举报