免费中文编程书籍与Git教程资源整合

需积分: 1 0 下载量 64 浏览量 更新于2024-10-03 收藏 46KB ZIP 举报
资源摘要信息:"Free-Programming-Books-zh_CN-git教程资源是一个涵盖了大量中文编程图书的免费资源库,旨在为编程学习者提供免费的学习材料。该资源库不仅包括了各类编程语言的学习书籍,还包含了各种编程相关的文档,例如:工具使用手册、API文档、技术标准等。通过阅读这些书籍,学习者可以提高他们的编程能力,掌握更多技术知识。" 1. .editorconfig文件:这是用于定义和维护跨多种编辑器和IDE的编码风格的配置文件。该文件的存在是为了保持代码的一致性,无论开发人员使用什么编辑器或IDE。在Git教程中,.editorconfig文件的使用是一个重要的学习点,因为它涉及到代码规范和代码质量保证。 2. gulpfile.js文件:Gulp是一个自动化构建工具,使用Node.js编写,通过简单的API和插件生态系统,可以执行各种任务,如压缩、编译、单元测试、linting等。gulpfile.js是Gulp的任务配置文件,它告诉Gulp如何执行这些任务。在Git教程资源中,学习如何编写gulpfile.js可以帮助开发者理解如何在项目中使用Gulp进行自动化构建。 3. .travis.yml文件:Travis CI是一个开源的持续集成服务,可以用来自动化构建和测试代码。.travis.yml是一个配置文件,它定义了构建和测试的过程。在Git教程中,了解如何编写和配置.travis.yml文件是理解持续集成概念的关键。 4. LICENSE文件:这是一个定义项目许可证的文件,它声明了其他人可以如何使用该项目的代码。在开源项目中,这个文件是必须的,它告诉用户项目代码的法律使用规则,例如是否可以用于商业用途,是否可以修改,是否需要保留原作者的版权声明等。学习如何选择和使用许可证是开源文化中非常重要的一部分。 5. CONTRIBUTING.md文件:这个文件包含了向项目贡献代码的指南。它详细说明了贡献者应该遵循的步骤,比如如何设置开发环境,如何提交问题,如何提交代码变更请求等。在Git教程中,学习如何阅读和遵循CONTRIBUTING.md文件可以帮助开发者更好地参与开源项目。 6. what-non-programming-books-should-programmers-read.md文件:这个文件列出了程序员除了技术书籍之外还应该阅读的非编程书籍。这些书籍可能涵盖了哲学、认知科学、领导力、经济学等其他领域,旨在提高程序员的软技能和开阔他们的视野。学习这些非技术类书籍可以帮助程序员在职业生涯中取得更全面的发展。 7. readme.txt文件:这是项目根目录中的一个标准文件,通常用于描述项目的用途、安装方法、使用方法等重要信息。在Git教程资源中,readme.txt文件的编写和使用是学习如何向他人介绍和说明自己项目的起点。 以上文件的名称列表表明,Free-Programming-Books-zh_CN-git教程资源不仅提供了编程技术的学习资源,还涉及到了代码规范、自动化工具、持续集成、版权知识、贡献指南和非技术书籍阅读建议,以及项目文档编写等全面的知识点,这对于编程学习者来说是一个非常宝贵的资源集合。通过这些资源,学习者能够更深入地理解软件开发的各个方面,提升自身的技术和非技术能力。

execute_process(COMMAND sh -c "git symbolic-ref --short -q HEAD" OUTPUT_VARIABLE GIT_BRANCH OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND sh -c "git rev-list HEAD --abbrev=8 --abbrev-commit --max-count=1" OUTPUT_VARIABLE GIT_LAST_COMMIT OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND sh -c "git rev-list HEAD --count" OUTPUT_VARIABLE GIT_COMMITS_NUM OUTPUT_STRIP_TRAILING_WHITESPACE) execute_process(COMMAND sh -c "git status --short --untracked-files=no | wc -l" OUTPUT_VARIABLE GIT_DIFF_STATUS OUTPUT_STRIP_TRAILING_WHITESPACE) if ( ${GIT_DIFF_STATUS} EQUAL "0" ) set(BUILD_VERSION "R${GIT_LAST_COMMIT}_${GIT_BRANCH}") else() set(BUILD_VERSION "R${GIT_LAST_COMMIT}M_${GIT_BRANCH}") endif() #build date string(TIMESTAMP DATETIME "%Y%m%d%H%M%S") #enable gdb debug symbol if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") message (STATUS "No CMAKE_BUILD_TYPE selected, defaulting to ${CMAKE_BUILD_TYPE}") endif() message (STATUS "The CMAKE_BUILD_TYPE is selected to ${CMAKE_BUILD_TYPE}") set(CMAKE_CXX_FLAGS_BASE "$ENV{CXXFLAGS} -pipe -Wall -Wno-unknown-pragmas -Wno-format-zero-length -lrt -Wno-ignored-attributes") #set(CMAKE_CXX_FLAGS_BASE "${CMAKE_CXX_FLAGS_BASE} -save-temps") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_BASE} -O2 -g") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_BASE} -O3") #set(CMAKE_DEBUG_POSTFIX _D) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CMAKE_COMMAND} -E time") set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK "${CMAKE_COMMAND} -E time")

2023-07-22 上传

Traceback (most recent call last): File "C:\Users\GL\.conda\envs\pytorch\lib\site-packages\git\__init__.py", line 89, in <module> refresh() File "C:\Users\GL\.conda\envs\pytorch\lib\site-packages\git\__init__.py", line 76, in refresh if not Git.refresh(path=path): File "C:\Users\GL\.conda\envs\pytorch\lib\site-packages\git\cmd.py", line 392, in refresh raise ImportError(err) ImportError: Bad git executable. The git executable must be specified in one of the following ways: - be included in your $PATH - be set via $GIT_PYTHON_GIT_EXECUTABLE - explicitly set via git.refresh() All git commands will error until this is rectified. This initial warning can be silenced or aggravated in the future by setting the $GIT_PYTHON_REFRESH environment variable. Use one of the following values: - quiet|q|silence|s|none|n|0: for no warning or exception - warn|w|warning|1: for a printed warning - error|e|raise|r|2: for a raised exception Example: export GIT_PYTHON_REFRESH=quiet The above exception was the direct cause of the following exception: Traceback (most recent call last): File "E:\eclipse workspace\yolov5-master\train.py", line 72, in <module> GIT_INFO = check_git_info() File "C:\Users\GL\.conda\envs\pytorch\lib\contextlib.py", line 79, in inner return func(*args, **kwds) File "E:\eclipse workspace\yolov5-master\utils\general.py", line 360, in check_git_info import git File "C:\Users\GL\.conda\envs\pytorch\lib\site-packages\git\__init__.py", line 91, in <module> raise ImportError("Failed to initialize: {0}".format(exc)) from exc ImportError: Failed to initialize: Bad git executable. The git executable must be specified in one of the following ways: - be included in your $PATH - be set via $GIT_PYTHON_GIT_EXECUTABLE - explicitly set via git.refresh() All git commands will error until this is rectified. This initial warning can be silenced or aggravated in the future by setting the $GIT_PYTHON_REFRESH environment variable. Use one of the following values: - quiet|q|silence|s|none|n|0: for no warning or exception - warn|w|warning|1: for a printed warning - error|e|raise|r|2: for a raised exception Example: export GIT_PYTHON_REFRESH=quiet

2023-07-10 上传

Traceback (most recent call last): File "F:\conda\envs\yolov5\lib\site-packages\git\__init__.py", line 89, in <module> refresh() File "F:\conda\envs\yolov5\lib\site-packages\git\__init__.py", line 76, in refresh if not Git.refresh(path=path): File "F:\conda\envs\yolov5\lib\site-packages\git\cmd.py", line 392, in refresh raise ImportError(err) ImportError: Bad git executable. The git executable must be specified in one of the following ways: - be included in your $PATH - be set via $GIT_PYTHON_GIT_EXECUTABLE - explicitly set via git.refresh() All git commands will error until this is rectified. This initial warning can be silenced or aggravated in the future by setting the $GIT_PYTHON_REFRESH environment variable. Use one of the following values: - quiet|q|silence|s|none|n|0: for no warning or exception - warn|w|warning|1: for a printed warning - error|e|raise|r|2: for a raised exception Example: export GIT_PYTHON_REFRESH=quiet The above exception was the direct cause of the following exception: Traceback (most recent call last): File "E:\yolov5-master\train.py", line 67, in <module> GIT_INFO = check_git_info() File "F:\conda\envs\yolov5\lib\contextlib.py", line 79, in inner return func(*args, **kwds) File "E:\yolov5-master\utils\general.py", line 360, in check_git_info import git File "F:\conda\envs\yolov5\lib\site-packages\git\__init__.py", line 91, in <module> raise ImportError("Failed to initialize: {0}".format(exc)) from exc ImportError: Failed to initialize: Bad git executable. The git executable must be specified in one of the following ways: - be included in your $PATH - be set via $GIT_PYTHON_GIT_EXECUTABLE - explicitly set via git.refresh() All git commands will error until this is rectified. This initial warning can be silenced or aggravated in the future by setting the $GIT_PYTHON_REFRESH environment variable. Use one of the following values: - quiet|q|silence|s|none|n|0: for no warning or exception - warn|w|warning|1: for a printed warning - error|e|raise|r|2: for a raised exception Example: export GIT_PYTHON_REFRESH=quiet

2023-06-11 上传