I am using gitlab repository for my project. Yesterday i saw unexpected behaviour, I modified 2 files and commited them to the repo (following by git add, git commit and git push) after that I took git pull in another branch but this time i received whole project files. I am not able to understand this. Please let me know why I got whole project by git pull command. I also did not took pull first time I am doing it regularly and both are working branches.
Git repositories always have all of the files in the repository, not just the ones you most recently modified.