Answers for "git checkout with uncommitted changes"

C#
2

git check for uncommitted changes

//CHECK FOR UNCOMMITED CHANGES
git status -s

//If there are no changes has no output
//If there are changes are listed the modified files
Posted by: Guest on July-28-2021
4

git reset uncommitted changes

use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Posted by: Guest on December-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language