- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 95
 
[TASK] issues #3 (https://github.com/SENATOROVAI/intro-cs/issues/3) #479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Open
      
      
            nigmatullin244
  wants to merge
  14
  commits into
  SENATOROVAI:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
nigmatullin244:main
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    
              
                    nigmatullin244
  
              
              commented
              
                  
                    Nov 1, 2025 
                  
              
              
            
            
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сабмит
      Comment on lines
    
      +1
     to 
      +38
    
  
  | """[TASK] STASH #3.""" | ||
| 
               | 
          ||
| # 1. Что делает команда git stash? | ||
| # - Сохраняет изменения в рабочей директории и индексированные изменения в локальное хранилище | ||
| # 2. Как просмотреть список всех сохранённых изменений (стэшей)? | ||
| # - Команда git stash list показывает сохраненные стеши | ||
| # 3. Какая команда применяется для использования верхнего стэша? | ||
| # - Команда git stash apply | ||
| # 4. Как применить конкретный стэш по его номеру? | ||
| # - git stash apply stash@{N}, где N - номер стеша | ||
| # 5. Чем отличается команда git stash apply от git stash pop? | ||
| # - git stash apply применяет изменения из стэша, но оставляет его в списке | ||
| # - git stash pop применяет изменения и удаляет этот стэш из списка | ||
| # 6. Что делает команда git stash drop? | ||
| # - git stash drop stash@{N} - удалит стеш с номером N | ||
| # 7. Как полностью очистить все сохранённые стэши? | ||
| # - git stash clear | ||
| # 8. В каких случаях удобно использовать git stash? | ||
| # - Когда необходимо переключиться на другую ветку или задачу без необходимости закоммитить текущие изменения | ||
| # 9. Что произойдет, если выполнить git stash pop, но в проекте есть конфликтующие изменения? | ||
| # - Будет сообщение о конфликте, требующем ручного разрешения | ||
| # 10. Можно ли восстановить удалённый стэш после выполнения git stash drop? | ||
| # - Можно, если не закрыли терминал (пока объекты не были удалены сборщиком мусора): | ||
| # 1. git fsck --no-reflog | awk '/dangling commit/ {print $3}' - выведет список хешей коммитов, на которые больше нет ссылок | ||
| # 2. git show <хеш_коммита> - посмотреть содержимое стеша | ||
| # 3. git stash apply <хеш_коммита> - применить изменения как стэш | ||
| # 11. Что делает команда git stash save "NAME_STASH" | ||
| # - Сохраняет изменения в стэш с комментариями, указанными в кавычках | ||
| # 12. Что делает команда git stash apply "NUMBER_STASH" | ||
| # - Применяет конкретный стэш по номеру | ||
| # 13. Что делает команда git stash pop "NUMBER_STASH" | ||
| # | ||
| # Сохраните текущие изменения в стэш под названием "SENATOROV ver1", вставьте скриншот из терминала | ||
| # | ||
| # Внесите любые изменения в ваш репозиторий и сохраните второй стэш под именем "SENATOROV ver2" | ||
| # Восстановите ваш стэш "SENATOROV ver1", вставьте скриншот из терминала | ||
| # Удалите все стеши из истории, вставьте скриншот из терминала | ||
| # | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пожалуйста, сделайте ревью
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Closes https://github.com/SENATOROVAI/intro-cs/issues/3