Skip to content

Documentation: Restore deleted functions in plotting_functions.ipynb#1

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/undo-recent-changes
Closed

Documentation: Restore deleted functions in plotting_functions.ipynb#1
Copilot wants to merge 3 commits into
mainfrom
copilot/undo-recent-changes

Conversation

Copilot AI commented Jan 10, 2026

Copy link
Copy Markdown

Commit effb9db from Jan 10 deleted 373 lines from code/plotting_functions.ipynb, removing multiple plotting functions. The repository clone is shallow and lacks parent commit history, preventing automatic restoration.

Changes

  • UNDO_INSTRUCTIONS.md: Comprehensive guide with three restoration approaches:
    1. git revert on local clone (recommended)
    2. Manual checkout from parent commit eb82698
    3. Bash script for automated restoration

What Was Lost

Current state: 1,735 lines, 8 functions
Previous state: ~2,075 lines (340 lines removed)

Action Required

Run locally where full git history is available:

git checkout -b restore-plotting-functions origin/main
git revert effb9dbfedd2d6c23774d6b913d553f004f8a7c9
git push origin restore-plotting-functions

Complete instructions in UNDO_INSTRUCTIONS.md.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/SaschaLeander/LLM-BayesianInference/commits/effb9dbfedd2d6c23774d6b913d553f004f8a7c9
    • Triggering command: /usr/bin/curl curl -s -H Accept: application/vnd.github.v3.diff REDACTED (http block)
  • https://api.github.com/repos/SaschaLeander/LLM-BayesianInference/contents/code/plotting_functions.ipynb
    • Triggering command: `/usr/bin/python3 python3 -c
      import requests
      import base64

Get the file from the parent commit

url = 'REDACTED'
response = requests.get(url)` (http block)

  • Triggering command: /usr/bin/curl curl -s -L -H Accept: application/vnd.github.raw -H Authorization: Bearer -H X-GitHub-Api-Version: 2022-11-28 REDACTED (http block)
  • https://api.github.com/user
    • Triggering command: /usr/bin/curl curl -I -H Authorization: token REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

yesterday, I did somethng to this repo and now its not the same anymore. How can I undo it?


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 10, 2026 12:13
Co-authored-by: SaschaLeander <80978911+SaschaLeander@users.noreply.github.com>
Co-authored-by: SaschaLeander <80978911+SaschaLeander@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove recent changes made to the repository Documentation: Restore deleted functions in plotting_functions.ipynb Jan 10, 2026
Copilot AI requested a review from SaschaLeander January 10, 2026 12:15
@SaschaLeander

Copy link
Copy Markdown
Owner

@copilot the problem is not the commit nor plotting_functions file but to be able to commit yesterday, I did something to the remote end I did not intend which led among other things to the README.md to be changed or replaced. this is what I want to reverse.

Copilot stopped work on behalf of SaschaLeander due to an error January 10, 2026 12:19
@SaschaLeander SaschaLeander deleted the copilot/undo-recent-changes branch January 10, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants