The main difference between git rm --cached and git restore --staged is that git rm --cached removes the file from the index, while git restore --staged restores the file to the index from the HEAD commit.
Thank you so much I'm new to this and I searched everywhere on how to restore my change properly. Can you do a video about browser-sync? Mine is said connected but doesn't reload my site
Want to learn about all important git commands ?
Checkout this full git and GitHub Guide for Beginners : ua-cam.com/video/5Dxq1h4jKBc/v-deo.html
You taught the concept very nicely. Thank You 👍
Most Welcome 😊
Great video ✌️
Thank you !
👏👏👏👏👏
Thank you !!
Whats the difference between git rm --cache and git restore --staged ?
The main difference between git rm --cached and git restore --staged is that git rm --cached removes the file from the index, while git restore --staged restores the file to the index from the HEAD commit.
NIce video. One more thing you might (if not should) have mentioned is the difference between git restore and git reset commands.
Thats true but the idea was to cover git restore
Thank you so much I'm new to this and I searched everywhere on how to restore my change properly. Can you do a video about browser-sync? Mine is said connected but doesn't reload my site
Glad it helped ☺️ Yes will do that as well
"git restore ." teleports to last commit.
Thats true