How to fix the problem of executing gitenv.csh file failed
来源:互联网 发布:tomcat80端口被占用 编辑:程序博客网 时间:2024/05/16 00:25
How to fix the problem of executing “gitenv.csh” file failed
The Problem
Today when I checkout from one branch to another branch,I can’t use the command of ‘rsarte_rac_oam’.I guess there has someting wrong with my gitenv,so I execute the gitenv.csh with the command source gitenv.csh but failed.
The Reason
The reason is that whenever we checkout form one branch to another,we should clean some tmp config/files of the last branch.If we don’t do that,it may occur faults.
How To Fix This Problem
- Clean up the submodules
git submodule foreach git clean -dfx
- Clean up lrat
git clean -dfx
- Switch to your local dev branch
git checkout dev
- Fetch the latest from origin/dev and prune any branches that no longer exist
git fetch -p
- Reset your dev branch to match origin/dev
git reset --hard origin/dev
- Update the submodules
git submodule update
- Reset your environment
source gitenv.csh (or gitenv_dul20.csh, or gitenv.sh, or gitenv_dul20.sh)
- If these operations don’t work,you need to create a new repo.
How To Avoid This Problem
- Whenever you change your working branch,please do the command source gitenv.csh at once.
阅读全文
1 0
- How to fix the problem of executing gitenv.csh file failed
- How to fix the problem of " Session Lost "
- How to fix the Android AVD no target problem
- How to fix oozie problem
- How To Fix Xcode's "used as the name of&
- How to fix QX File Extension
- Q&A: HOW TO FIX XCODE’S "USED AS THE NAME OF THE PREVIOUS PARAMETER" WARNING
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- how to fix the assembly problem when project A call project B as reference
- How to Fix the Problem "Could not get lock /var/lib/dpkg/lock"
- How to fix the python problem 'xxx() takes exactly one argument'
- How to Fix “ERROR : Could not find tsearch2.sql file” While Starting the PostgreSQL Database
- How to solve the issue of RSARTE's starting problem
- how to fix the frame size?
- PHPStorm解决Failed to change timestamp of the file
- How to delete the log file of log4j dynamically
- How to check the size of file/directory ?
- HTML5 File API: How to see the result of readAsText()
- Android 带关闭按钮的DialogFragment。
- C++中函数表与函数容器
- 理解MySQL——索引与优化
- 七牛上传图片第一次成功后面不成功
- 初学acmer--读《算法竞赛入门经典》笔记(三)p27-34
- How to fix the problem of executing gitenv.csh file failed
- JavaWeb使用Struts2的简单案例
- 11.6 字符串示例:字符串排序
- 11.5 字符串:选择排序
- 14.1 结构和其他数据形式:结构体
- 14.2 结构和其他数据形式:嵌套结构
- 14.5 结构和其他数据形式:指针和结构
- 微信小程序(5)-新闻页面制作(1)
- 14.5 结构和其他数据形式:传递结构