10
I am using GIT and I am working on 2 tasks at the same time. Task 1 and Task2. Now I want to push to the server Task1. So I commit all related files of Task 1 (T1) to the staging area.
My Staging area its ready to be pushed to the server, but before doing this, I consider it would be safe to check if my staging area its compiling and passing the tests.
How can I get a working dir with the staging area only changes in order to compile it and run the automated tests?
Note I dont want to run tests of the working directory, only of the staging area...Because working dir has changes related from T1 and T2.