I have removed many files from my GIT repository (from many different directories) physically
I can still see their references and if I commit to Geethhub, the old files are still there
I am from a remote repo server (GitHub) as well as from my local PC I need to remove references I
How do I get these references from the repository Can i
You need to create a "comma" (git's glossary for a new version) The files have been deleted, and then press GitHub. I think if you type git status , you will see something like this: # MasterCard # has changed but not updated: # (What will be done for "git add / rm and lieutenant; file & gt; ... ') (# GIT checkout -
if
git is located If there is no other change listed in the output of T , then it will be safe to:
git add -u git commit -m "delete old files" ... and then press GitHub. ( git add -u is stepped up to the next step, which controls the changes made to files, which by GIT Is being tracked, in which these files are included which you have manually removed by hand.)
However, if there are other changes listed in that output, it would be better to try some more precautions, as suggested here:
-
In the future It is best to delete the file in the first place with git rm :)
Comments
Post a Comment