I am new to git. I pushed all my files with following git add files/map
, git commit -m
, git push
and decided to remove them from my hard drive because to use git pull
. When i do that i don't get the changes.
Asked
Active
Viewed 76 times
-1

bCM
- 97
- 1
- 3
- 12
-
What does happen? What output do you get? – SLaks Feb 26 '15 at 19:25
-
see also http://stackoverflow.com/questions/1843577/how-to-restore-deleted-file?lq=1 . In general, pull will try to merge the remote repository with yours, but it will not discard the changes you have made (=deleted files). But I think you shold also be receiving a warning or an error message – lib Feb 26 '15 at 19:35
-
See http://stackoverflow.com/questions/9305326/why-doesnt-git-pull-bring-back-directories-that-ive-deleted You need to use reset or checkout. – Daniel Feb 26 '15 at 19:57
1 Answers
0
In general, git pull fetches and merges changes from a remote repository into the current branch. That's why you don't get the changes back.

Daniel
- 891
- 6
- 18