CO overview training memo_20081118-19

1)联产品:在物料主数据中:勾选上联产品标识--&gt联合生产结构中指定"分配结构"--&gtbom维护联产品;
2)副产品:用531收货,副产品用标准成本收货,不承担任何差异。
3)研发新品:标准价格为空,只是做数量管理,与WBS号码关联。

贸易类商品:采用移动加权平均价格。

工作中心创建:需要选择该工作中心消耗的作业类型(人工、折旧、辅材、动力等)

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/124645/viewspace-498101/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/124645/viewspace-498101/

[root@localhost fep_switch]# git submodule add <url> ldk_marvell/cpss_work_4.3.18 bash: url: No such file or directory [root@localhost fep_switch]# git submodule init [root@localhost fep_switch]# git submodule update error: The following untracked working tree files would be overwritten by checkout: CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5.log CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Responsive HTML5_favicon.png CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide.ppf CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/ASIC_Simulator_Components.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/ASIC_Simulator_Components1.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/ASIC_Simulator_Executable.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/ASIC_Simulator_Initialization_and_Register_Files.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/Building_with_ASIC_Simulator_as_Target.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/Ostinato_–_A_Packet_Generator.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/Running_the_Simulator.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Components/SLAN.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Overview/ASIC_Simulator_Overview.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Overview/ASIC_Simulator_Overview1.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_Overview/About_the_Prestera_ASIC_Simulator.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/ASIC_Simulation__47_Application_Debugging_Using_Debuggers_(GDB_and_VC10).htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/ASIC_Simulator_as_Debugger.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/ASIC_Simulator_as_a_Debugger.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/CPSS_Logger.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/Lua_CLI_Trace.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/ASIC_Simulator_as_Debugger/Simulation_Logger.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Appendix_Acronyms_Abbrev/Acronyms_and_Abbreviations.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Appendix_Acronyms_Abbrev/Appendix_Acronyms_Abbrev.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Preface/About_this_HTML_Help.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Preface/Applicable_Devices.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Preface/Notational_Conventions.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_User_Guide/Preface/Preface.htm CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/Simulation_User_Guide-Responsive HTML5/Simulation_ Aborting fatal: Unable to checkout '6c93b0f4e4caa4c7e5bb2026b3c7425b35af18e1' in submodule path 'ldk_marvell/cpss_work_4.3.13' fatal: could not get a repository handle for submodule 'ldk_marvell/cpss_work_4.3.18'
09-02
你遇到的错误信息如下: ```bash [root@localhost fep_switch]# git submodule add <url> ldk_marvell/cpss_work_4.3.18 bash: url: No such file or directory ``` ```bash fatal: Unable to checkout '6c93b0f4e4caa4c7e5bb2026b3c7425b35af18e1' in submodule path 'ldk_marvell/cpss_work_4.3.13' fatal: could not get a repository handle for submodule 'ldk_marvell/cpss_work_4.3.18' ``` --- ## ✅ 问题分析 ### 1. `bash: url: No such file or directory` 你执行了如下命令: ```bash git submodule add <url> ldk_marvell/cpss_work_4.3.18 ``` 但 `<url>` 并不是一个实际存在的路径或文件,Bash 把它当作一个文件来处理,所以报错。 ✅ **错误原因**:你没有替换 `<url>` 为实际的 Git 仓库地址。 --- ### 2. `fatal: Unable to checkout '6c93b0f...' in submodule path 'ldk_marvell/cpss_work_4.3.13'` 这说明 Git 试图切换子模块 `ldk_marvell/cpss_work_4.3.13` 到某个特定的 commit(`6c93b0f...`),但失败了。 ✅ **原因**: - 子模块未正确初始化; - 子模块目录存在,但 `.git` 文件或 `.git/modules/` 路径损坏; - 子模块未被正确克隆; - 存在未提交的本地修改,导致 Git 无法覆盖文件(见下文)。 --- ### 3. `fatal: could not get a repository handle for submodule 'ldk_marvell/cpss_work_4.3.18'` Git 无法访问子模块 `ldk_marvell/cpss_work_4.3.18` 的 Git 数据仓库。 ✅ **常见原因**: - 子模块路径存在,但 `.git` 文件损坏; - `.git/modules/ldk_marvell/cpss_work_4.3.18` 路径不存在; - 权限问题或 SSH 配置错误导致无法访问远程仓库。 --- ## ✅ 解决方法 ### ✅ 步骤一:使用正确的 Git URL 添加子模块 不要使用 `<url>`,应使用实际的 Git 地址: ```bash git submodule add ssh://wanglian1@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.18 ldk_marvell/cpss_work_4.3.18 ``` > ✅ 替换为你实际的仓库地址 ### ✅ 步骤二:删除损坏的子模块缓存 如果子模块已存在但损坏,需手动清理: ```bash rm -rf .git/modules/ldk_marvell/cpss_work_4.3.18 rm -rf ldk_marvell/cpss_work_4.3.18 ``` 同时删除 `.git/config` 中对应的子模块条目: ```bash nano .git/config ``` 找到并删除如下内容: ```ini [submodule "ldk_marvell/cpss_work_4.3.18"] path = ldk_marvell/cpss_work_4.3.18 url = ssh://wanglian1@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.18 ``` ### ✅ 步骤三:重新添加并初始化子模块 ```bash git submodule add ssh://wanglian1@gerrit.ep.tp-link.com:29418/SMB/SWITCH/SDK/cpss_work_4.3.18 ldk_marvell/cpss_work_4.3.18 git submodule init git submodule update --recursive ``` --- ### ✅ 步骤四:处理 untracked 文件冲突 你遇到如下错误: ``` error: The following untracked working tree files would be overwritten by checkout: CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/... Aborting ``` 这说明你本地有一些未跟踪的文件,Git 担心被覆盖。 #### 解决方法: #### 1. 删除这些文件(如果你不需要) ```bash rm -rf CPSS-4.3.13_PSDK_UserGuide/ASIC_SIMULATOR/ ``` #### 2. 或者强制 Git 覆盖这些文件 ```bash git clean -fd ``` ⚠️ **注意**:这将删除所有未跟踪的文件,请确认你不需要这些内容。 --- ## ✅ 拓展说明 | 问题 | 原因 | 解决方法 | |------|------|----------| | `fatal: could not get a repository handle for submodule` | 子模块数据损坏或路径不存在 | 清理并重新添加子模块 | | `untracked working tree files would be overwritten` | 本地有未提交/未跟踪的文件 | `git clean -fd` 或手动删除 | | `bash: url: No such file or directory` | 没有替换 `<url>` 为真实地址 | 替换为实际 Git URL | --- ## ✅ 总结 | 步骤 | 操作 | |------|------| | 1 | 删除损坏子模块缓存和目录 | | 2 | 删除 `.git/config` 中子模块配置 | | 3 | 使用真实 Git URL 添加子模块 | | 4 | 初始化并更新子模块 | | 5 | 处理冲突文件(`git clean -fd`) | --- ###
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值