saving . . . saved no error on switching branch without committing changes has been deleted. no error on switching branch without committing changes has been hidden .
no error on switching branch without committing changes
Title
Question
Hello,

I made some changes to chapter-three branch and without committing the changes when I am switching to master branch then I am not getting any error as stated in the stashing and cleaning video , below is the log for the same : 
PS C:\Users\mohit\mywebpage> git status
On branch chapter-three
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   mypage.html
        modified:   mypage.html.txt

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        hostory.html

no changes added to commit (use "git add" and/or "git commit -a")
PS C:\Users\mohit\mywebpage> git checkout master
Switched to branch 'master'
M       mypage.html
M       mypage.html.txt
PS C:\Users\mohit\mywebpage>


Git Stashing-and-Cleaning 02-03 min 40-50 sec 27-03-24, 11:44 a.m. mohit020888@gmail.com

Answers:

Dear Mohit

Kindly execute
1.git stash
2.git add .
3.git commit -m "message"
4.git stash pop

Kindly reply if you have issues of executing the above commands.

05-04-24, 4:48 p.m. madhurig


Log-in to answer to this question.