If the git status command displays 'myfile.txt' as file pending to commit then
To unstage a file(which is not yet committed but in staging stage); command 'git reset <file-name>' is used. After using 'git reset HEAD myfile.txt' command; 'git status' command won't show myfile.txt within the list of files unfinished to commit, currently it'll be displayed below the list of the unstage/untracked files.
Now to discard the changes('myfile.txt') in working directory; command 'git checkout -- <file-name>' is used. After using 'git checkout -- myfile.txt' command; 'git status' command will not show myfile.txt in the list of unstage/untracked files as this file 'myfile.txt' will be replaced with the last committed version from the repository.
How do you restructure working directory files ...READ MORE
One of the possibility is that your ...READ MORE
You should consider using this inside your ...READ MORE
As per Bluemix Status Page today DevOps Delivery Pipeline ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
To remove a file for example 'myfile.txt'; ...READ MORE
If we have a file called 'myfile.txt' ...READ MORE
Already have an account? Sign in.