When I clone the admission repository, the This directory is not empty , You deleted the files from the file system, but you did not remove them from the index of your repository What's happening: This will delete the img / directory is untracked.
Gokmen @ rondosto admege% git st ?? Img / Gokmen @ Rodosto advimage # # Unwanted tracked files on the # branch: # (To add "Git to add" file & gt; ... "what will be committed) # # Img / nothing is committed, but untracked files were added to the current (use "git to add" to track)
img / has a tracked file named sample.gif . Gokmen @ Rodosto advimage% touch img / head gucman @ rodosto advimage% git img / head gyckmann @ rodosto advimage% git st im an img / hede ??: i add an empty file Try M img / sample.gif Gokmen @ Rodosto Advimage: img / Gokmen @ Rodosto Advimage% rm-RF img Gokmen @ Rodosto advimage% Git St e img / Hede de img / sample.gif Gokmen @ Rodosto advimage% Unset after git reset Change Reset% git st d img / sample.gif gokmen @ rodosto advimage%
git fsck --full Output is empty I
img / < Why can not delete the
git status list in / code>?
Git rm -r img / & amp; Amp; . Git committed to completely remove the
img / directory
Gokmen @ Rodosto advimage% Rm-rf img gokmen @ advimage% git st e img / hede de img / sample.gif rostosto
e img / hede shows that you have the new file It was deleted without using
img / head and then using
git rm .
D img / sample.gif suggests that you have removed
img / sample.gif without using
git rm .
img / hede tracking stopped, which was unmanned and deleted from the
rm -rf command
img / sample.gif right now Also have already been tracked (and modified) if you release
GIT reset - hard , you will not see any output here, but IMG / sample.gif will return back to working directory D. Gokmen @ rodosto advimage% git st d img / sample.gif
img / sample.gif From
rm to the
git rm at this point, you can see the
git rm img / sample.gif & amp; Amp; Git commit to remove the file .
Comments
Post a Comment