git stash - 没有保存但未跟踪文件的本地更改

时间:2017-02-20 12:49:42

标签: git git-stash

我想隐藏一些Untracked文件。我试过了:

$ git stash

给了

No local changes to save

正在运行git status

$ git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

    dir/

nothing added to commit but untracked files present (use "git add" to track)

有什么建议吗?

1 个答案:

答案 0 :(得分:2)

您需要存储未跟踪的文件。藏有$.validator.methods.adt = function(value, element) { var min = $(element).data('min-date-adt'); var max = $(element).data('max-date-adt'); var minDate = toDate(min); var maxDate = toDate(max); console.log(minDate); console.log(maxDate); var check = $(element).val(); console.log(check); var checkDate = toDate(check); console.log(checkDate); function toDate(datestr) { var from = datestr.split("."); return new Date(from[2], from[1] - 1, from[0]); } var result = checkDate > minDate && checkDate < maxDate; console.log(result); return result; }; 标志。
 或者,首先--include-untracked,然后进行藏匿。

Add