Question: I am newbie to git, I want to get update from remote to local only in particular folder of the local branch for that i did the below:

```
git fetch
git checkout origin/branch-name -- /path/to/particular/folder

```

I got the latest code to that particular folder but when I perform `git status` it shows the file which got latest as modified file (as staged file), but I don't want this.

My requirement is when I perform `git status`, it has to show message like `everything is up-to-date`.

Do I need to change above mentioned `git fetch` and `git checkout` commands or any other alternatives?

Answer: 
Git is not SVN. You don't checkout a revision into a certain folder. You have **one** working copy. In that working copy you can 

```
git checkout branchname

```

in order to check out a single branch in this working copy. If you want to simultaneously check out two different branches of the same repo, you need two working copies.
i agree with lgal S said also you can `git stash` your code and then `pull` your update code and then apply change after you finish it 
the good about `git stash` is you don't have to commit your change if not finish yet you just keep it and `pull` your updates then back to your work and after finish it your can `commit` it you can look on documention of `git stash` [here](https://git-scm.com/book/en/v1/Git-Tools-Stashing)