Question #147MediumNavigation & Routing

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

#git

Answer

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