Git说要使用
git add
Run Code Online (Sandbox Code Playgroud)
将未跟踪的文件添加到我的仓库.
我跑得不成功
git add shells/zsh/keyboard_configs/
git add shells/zsh/references/
git add shells/zsh/keyboard_configs/*
git add shells/zsh/references/*
git add shells/zsh/keyboard_configs/*<TAB>
git add shells/zsh/references/*<TAB>
git add .
Run Code Online (Sandbox Code Playgroud)
当我看到它时,我仍然得到文件未跟踪
git status
Run Code Online (Sandbox Code Playgroud)
你怎么能在长路径git添加文件?
我跑
$git status ~/bin
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# shells/zsh/keyboard_configs/
# shells/zsh/references/
nothing added to commit but untracked files present (use "git add" to track)
$git add shells/zsh/keyboard_configs ~/bin
$git add shells/zsh/references ~/bin
Run Code Online (Sandbox Code Playgroud)
以下是出乎意料的.我希望我添加了要跟踪的文件夹及其内容.
$git status ~/bin
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# shells/zsh/keyboard_configs/
# shells/zsh/references/
nothing added to commit but untracked files present (use "git add" to track)
$
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
522 次 |
| 最近记录: |