git_eclipse

主要参考:
https://my.oschina.net/songxinqiang/blog/194203
https://my.oschina.net/songxinqiang/blog/192567
git使用
一、约定

    演示使用的eclipse版本为Kepler SR1,git服务为oschina

二、步骤

1、准备代码库

    在oschina代码托管商新建代码库
    然后再eclipse的git视图中克隆代码库

2、新建一个项目用于演示,实际中可以是任意项目
3、将项目加入本地的代码库
选择git管理
选择代码库
4、提交到中央仓库

    本地提交
    填写说明,选择文件
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
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
07-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值