git 常用指令
来源:互联网 发布:weka 删除数据 编辑:程序博客网 时间:2024/04/30 05:49
1.git clean -d -x -f
will remove untracked files, including directories (-d
) and files ignored by git (-x
). Replace the -f
argument with -n
to perform a dry-run or -i
for interactive mode and it will tell you what will be removed.
2.git reset --hard
To reset the entire repository to the last committed state
1沒辦法移除原本就有被tracked files,所以必須在靠2,來把有修改過得檔案,也回復到最後的commit state
適合情況:新的一包git trunk抓下來,有修改一些東西,也有build過,但還沒commit,而且回到最初剛抓下來時的樣子時,就適合同時使用1 and 2來處理
0 0
- git 常用指令
- git常用指令
- Git 常用指令
- git 常用指令
- Git 常用指令详解
- git常用指令整理
- git常用指令
- git 常用指令
- Git常用指令集合
- git 常用指令详解
- git 常用指令
- git常用指令
- 常用git指令整理
- git 常用指令
- git常用指令
- git常用指令(转)
- Git部分常用指令
- git 常用指令
- 几条 ffmpeg 的命令
- Spark新年福音:一个用于大规模数据科学的API——DataFrame
- 4A Watermelon
- iOS:原生二维码扫描
- wix toolset安装包丢失文件
- git 常用指令
- 158A Next Round
- Android Studio项目中导入第三方类库工程
- mongodb入门笔记
- 71A Way Too Long Words
- centos 6.5下安装rstudio server【总结】
- POJ 1873 凸包+枚举
- 118A String Task
- ubuntu9.10没有/etc/grub.conf文件