I have local main in my system and it has some folders which are deleted from remote main and now I want all changes from remote main to my local main but when I did ""git pull"" or "git pull origin main" it still has that folder which is deleted already from remote main. so what should I do here??
Asked
Active
Viewed 33 times
0
-
inshort i want to replace my entire local main with remote main and i dont want any extra files from my local main – YASH JARIWALA Aug 05 '21 at 10:40
-
https://stackoverflow.com/search?q=%5Bgit%5D+replace+master+remote – phd Aug 05 '21 at 11:30
-
`git fetch && git checkout main && git reset --hard origin/main` – phd Aug 05 '21 at 11:31
-
I already did these steps but it still keep that one empty folder in my local main and does not remove it by itself as the remote main doesn't have it . Although, i think that the rest of the folders gets updated with the ones in the remote main. – YASH JARIWALA Aug 06 '21 at 14:06
-
What says `git status` about the folder? – phd Aug 06 '21 at 14:15
-
it says added new folder and wants me to add new folder. Also there has been some changes done in naming of folders in remote main but still i couldn't see them in my local main when i pull changes – YASH JARIWALA Aug 08 '21 at 02:14