Answer
- Stash:
- : Move from the local to the git stash.text
git stash push -m "test folder mock file issue fixed" - : List all the git stash list.text
git stash list - : Move from stash to local.text
git stash pop stash@{0} - : Delete from the stash.text
git stash drop stash@{0} - : Copy from the stash to local.text
git stash apply stash@{0} - : Stash particular file alone.text
git stash push -m "stash only login.dart" -- path/to/login.dart - : Stash multiple particular files.text
git stash push -m "stash UI files only" -- file1.dart file2.dart file3.dart - : Show the difference of what you have stashed.text
git stash show -p stash@{0} - : Stash untracked/recently created new files with old files both.text
git stash push -u -m "test folder mock file issue fixed" - : Stash along with other files includingtext
git stash push -a -m "test folder mock file issue fixed"files.text.gitignore - Local:
- Follow this command to ignore the file in project but have it locally: text
nano .git/info/exclude - Example of content:text
.git/info/exclude
bashundefined