GIT - what is git STASH? CREATE,VIEW,DELETE stashes in git

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this video we are going to learn GIT STASH:
    16. Git Stash
    Create stash
    git stash
    git stash save “name”
    git stash push -m “text”
    Create stash with untracked files
    git stash -u
    List all stashes
    git stash list
    View stash
    git stash show stash@{index}
    git stash apply vs git stash pop
    git stash apply stash@{index} - This will apply changes into working copy
    git stash pop stash@{index} - This will apply changes into working copy and deletes the stash
    Delete stash
    git stash drop stash@{index} - to delete a specific stash
    git stash clear - to delete all the stashes
    My LinkedIn : / suresh-kumar-mylam-132...

Комментарии • 2

  • @devasena2749
    @devasena2749 3 года назад

    good explanation for stash concept

  • @aftabkham
    @aftabkham Год назад

    Helpful video. Thanks.
    At 15:30 >> git stash show stash@{0} - did not show any file names because file was untracked file.
    Then how to view stash contents if it has some untracked files.