我从Github git clone boost master分支上的最新源代码.我试图建立它但失败了,
$ ./bootstrap.sh
./bootstrap.sh: line 188: ./tools/build/src/engine/build.sh: No such file or directory
-n Building Boost.Build engine with toolset ...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details
Run Code Online (Sandbox Code Playgroud)
的内容 bootstrap.log
1 ./bootstrap.sh:218行:cd:./tools/build/src/engine:没有这样的文件或目录
问题:
我明白没有 ./tools/build/src/engine,我该如何解决这个问题?我也注意到了
-n使用工具集构建Boost.Build引擎...
但是,bootstrap.sh没有-n选择权.
我的发展环境:
MacOS X10.9 Xcode5.1
我是yaml-cpp的新手,我尝试了最简单的程序,但失败了,也没有找到作者的google/github网站的答案.
#include <iostream>
#include "yaml-cpp/yaml.h"
using namespace std;
int main()
{
YAML::Node config = YAML::LoadFile("sample.yaml");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
来自YAML官方网站的sample.yaml样本
--- !clarkevans.com/^invoice
invoice: 34843
date : 2001-01-23
bill-to: &id001
given : Chris
family : Dumars
address:
lines: |
458 Walkman Dr.
Suite #292
city : Royal Oak
state : MI
postal : 48046
ship-to: *id001
product:
- sku : BL394D
quantity : 4
description : Basketball
price : 450.00
- sku : BL4438H
quantity : 1
description … 我提交了一些文件并尝试将它们推送到远程存储库。但是,我在列表中发现了一个大视频文件,并终止了推送。然后我尝试从列表中删除该文件并再次推送。
$git commit -m "comments" -a
$git push origin my_branch
... # I found mp4 file here and terminated push
$git rm --cached path/to/mp4
$git commit -m "comments" -a
$git push origin my_branch
Run Code Online (Sandbox Code Playgroud)
问题
git 仍然试图将 mp4 文件推送到 repo。
问题 如何避免被删除的文件推送到远程仓库?
PS
我也试过git rm path/to/mp4,文件已从我的目录中删除,但git仍然试图将文件推送到repo