我不知道这个问题应该移到ServerFault还是它属于这里!
在远程Unix服务器上,我使用file_x.php
创建了文件FileZilla
。
我在终端上使用GIT
。
当我做git status
时,它显示了此内容:
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
some_other_file1.php
some_other_file2.php
file_x.php
^
|__ Note this weird blank space
问题::我想从FileZilla
尝试删除此文件,但这没有用,它向我显示there is no such file or directory
!但是文件总是在那里!
所以我尝试了:
rm -rf file_x.php # This didn't work
sudo rm -rf file_x.php # I'm not from the sudoers
git checkout file_x.php # This didn't do a thing !
git clear -f # This didn't do a thing !
git rm file_x.php
==> fatal: pathspec 'file_x.php' did not match any files
我的问题是什么意思?以及如何删除此文件?
答案 0 :(得分:2)
您必须逃脱空格:
extension Data {
static func ^ (left: Data, right: Data) -> Data {
if left.count != right.count {
NSLog("Warning! XOR operands are not equal. left = \(left), right = \(right)")
}
var result: Data = Data()
var smaller: Data, bigger: Data
if left.count <= right.count {
smaller = left
bigger = right
} else {
smaller = right
bigger = left
}
let bs:[UInt8] = Array(smaller)
let bb:[UInt8] = Array (bigger)
var br = [UInt8] ()
for i in 0..<bs.count {
br.append(bs[i] ^ bb[i])
}
for j in bs.count..<bb.count {
br.append(bb[j])
}
result = Data(br)
return result
}
}