Loading...

Question #147MediumNavigation & Routing

Github Commands (stash , commit , push , pull , local)

#git

Answer

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