- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 95
 
[TASK] STASH (https://github.com/SENATOROVAI/intro-cs/issues/3) #350
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
      
      
            SergeyGermanovichML
  wants to merge
  11
  commits into
  SENATOROVAI:main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
SergeyGermanovichML: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.
          
          
  
     Open
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            11 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      29a6595
              
                [TASK] Quiz #6 (https://github.com/SENATOROVAI/intro-cs/issues/6)
              
              
                SergeyGermanovichML 95974f3
              
                add commits.py
              
              
                SergeyGermanovichML d1866fc
              
                fix(round_nums): fix incorrect rounding of numbers
              
              
                SergeyGermanovichML 534aa38
              
                feat(reports): add generateReport function for data analysis
              
              
                SergeyGermanovichML 447a412
              
                style: format code and fix indentation across project
              
              
                SergeyGermanovichML b78808a
              
                docs(reports): add comprehensive documentation for generateReport fun…
              
              
                SergeyGermanovichML b6de788
              
                test(reports): add comprehensive tests for genarateReports function
              
              
                SergeyGermanovichML a1cc529
              
                [TASK] Commits (https://github.com/SENATOROVAI/intro-cs/issues/5)
              
              
                SergeyGermanovichML bc664dd
              
                [TASK] STASH (https://github.com/SENATOROVAI/intro-cs/issues/3)
              
              
                SergeyGermanovichML bfc21ea
              
                [TASK] issues (https://github.com/SENATOROVAI/intro-cs/issues/2)
              
              
                SergeyGermanovichML 7f2e3c9
              
                [TASK] Виртуальное окружение (https://github.com/SENATOROVAI/intro-cs…
              
              
                SergeyGermanovichML File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| # 1. Что делает команда git stash? | ||
| # | ||
| # Сохраняет незакоммиченные изменения (modified и staged файлы) во временное хранилище, возвращая рабочую директорию к состоянию последнего коммита. | ||
| # | ||
| # 2. Как просмотреть список всех сохранённых изменений (стэшей)? | ||
| # | ||
| # git stash list | ||
| # | ||
| # 3. Какая команда применяется для использования верхнего стэша? | ||
| # | ||
| # git stash pop | ||
| # | ||
| # 4. Как применить конкретный стэш по его номеру? | ||
| # | ||
| # git stash apply stash@{n} | ||
| # | ||
| # где n - номер стэша (например, stash@{2}) | ||
| # | ||
| # 5. Чем отличается команда git stash apply от git stash pop? | ||
| # | ||
| # apply - применяет стэш, но сохраняет его в списке | ||
| # | ||
| # pop - применяет стэш и удаляет его из списка | ||
| # | ||
| # 6. Что делает команда git stash drop? | ||
| # | ||
| # Удаляет указанный стэш из списка. Без аргументов удаляет последний стэш | ||
| # | ||
| # 7. Как полностью очистить все сохранённые стэши? | ||
| # | ||
| # git stash clear | ||
| # | ||
| # 8. В каких случаях удобно использовать git stash? | ||
| # | ||
| # Когда нужно временно отложить текущие изменения для работы с другой веткой | ||
| # | ||
| # При смене контекста работы без коммита незавершённых изменений | ||
| # | ||
| # Перед выполнением операций, требующих чистого рабочего состояния | ||
| # | ||
| # 9. Что произойдёт, если выполнить git stash pop, но в проекте есть конфликтующие изменения? | ||
| # | ||
| # Git попытается применить изменения и создаст конфликт слияния, который нужно разрешить вручную. Стэш останется в списке до успешного применения. | ||
| # | ||
| # 10. Можно ли восстановить удалённый стэш после выполнения git stash drop? | ||
| # | ||
| # Да, если не прошло слишком много времени. Удалённые стэши временно хранятся в reflog: | ||
| # | ||
| # git reflog show refs/stash | ||
| # | ||
| # 11. Что делает команда git stash save "NAME_STASH" | ||
| # | ||
| # Создаёт стэш с указанным именем (удобно для идентификации) | ||
| # | ||
| # 12. Что делает команда git stash apply "NUMBER_STASH" | ||
| # | ||
| # Применяет конкретный стэш по его номеру, не удаляя его из списка | ||
| # | ||
| # 13. Что делает команда git stash pop "NUMBER_STASH" | ||
| # | ||
| # Применяет конкретный стэш по его номеру и удаляет его из списка | ||
| # | ||
| # 14. Сохраните текущие изменения в стэш под названием "SENATOROV ver1", вставьте скриншот из терминала | ||
| # | ||
| #  | ||
| # | ||
| # 15. Внесите любые изменения в ваш репозиторий и сохраните второй стэш под именем "SENATOROV ver2" | ||
| # | ||
| #  | ||
| # | ||
| # 16. Восстановите ваш стэш "SENATOROV ver1", вставьте скриншот из терминала | ||
| # | ||
| #  | ||
| # | ||
| # 17. Удалите все стеши из истории, вставьте скриншот из терминала | ||
| # | ||
| #  | ||
| 
     | 
||
| # | ||
  
    
      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
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # 1. Опишите своими словами назначение каждого из этих типов коммитов: | ||
| # feat, fix, docs, style, refactor, test, build, ci, perf, chore. | ||
| # | ||
| # feat - добавление новой функции | ||
| # | ||
| # fix - исправление бага в коде | ||
| # | ||
| # docs - обновление или изменение документации | ||
| # | ||
| # style - изменение стиля кода, не влияищее на функциональность | ||
| # | ||
| # refactor - изменение структуры кода, не изменяя функциональность(удаление дублирования кода, переименование переменных и т.д.) | ||
| # | ||
| # test - добавление, исправление или улучшение тестов | ||
| # | ||
| # build - изменения, связанные с системой сборки и внешними зависимостями(обновление зависимостей requirements.txt, изменение конфигурации сборки и т.д.) | ||
| # | ||
| # ci - изменение конфигурации CI/CD | ||
| # | ||
| # perf - улучшение производительности кода\программы(оптимизаци алгоритмов, оптимизация запросов к БД и т.д.) | ||
| # | ||
| # chore - рутинные задачи и изменения не связанные с изменением кода(обновление документации, обновление. | ||
| # | ||
| # gitignore, обновление README.md и т.д.) | ||
| # | ||
| # 2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix). | ||
| # | ||
| # fix(round_nums): fix incorrect rounding of numbers | ||
| # | ||
| # The round_nums() function was incorrectly rounding numbers. Fixed rounding logic to work correctly. | ||
| # | ||
| # Fixes #123 | ||
| # | ||
| # 3. Добавление новой функциональности: | ||
| # Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности | ||
| # | ||
| # feat(reports): add generateReport function for data analysis | ||
| # | ||
| # 4. Модификация формата кода или стилей: | ||
| # Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style | ||
| # | ||
| # style: format code and fix indentation across project | ||
| # | ||
| # 5. Документация и тестирование: | ||
| # | ||
| # Сделайте фиктивный коммит с типом docs, добавляющий или улучшающий документацию для вашей новой функции. | ||
| # Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции. | ||
| # | ||
| # docs(reports): add comprehensive documentation for generateReport function | ||
| # | ||
| # test(reports): add comprehensive tests for genarateReports function | ||
| 
     | 
||
| # | 
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  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.
  
    
  
    
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.
Please do a review