.pdb file too large and .gitignore will not resolve the issue #21405
-
Hi there, I’m a first year student at Abertay Uni and very new to forums so apologies if this topic is already floating about. Tech specs: A few weeks back I tried to push my project to the repo, however I kept getting an error in which it mentioned that the However, once I added the Lastly, I found an option to reset commitments with the choice of either resetting hard or mixed. At this point I had been coding for 3 further days without being able to push to my repo. So when I hit the hard reset, I was in complete and utter shock to find half my code missing and the error still existet. What I am trying to do, is to get the The error I’m receiving is as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Welcome to the GitHub community, @JanHuss and congrats on learning to code! We’re happy you’re here. You are more likely to get a useful response if you are posting your question(s) in the applicable category.I’ve gone ahead and moved it for you. Good luck! |
Beta Was this translation helpful? Give feedback.
-
JanHuss:
This is incorrect:
JanHuss:
So, what you need to do is edit your commit history to remove the file. Git - Rewriting History describes how to do that in general. There are also some tools for your specific case (removing a file from all commits), see Removing sensitive data from a repository - GitHub Docs. Good luck! :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
@liligalante thank you for the welcome message and thank you for categorizing my post. 🙂 @airtower-luna thank you for the clarification. Your help has been incredibly educational. I first was struggling to understand how to apply the commands but I managed to get around this by using git extensions. The first link you sent me on rewriting my commit history was exactly what needed to be done so I can’t thank you enough. Do I need to change the subject to Once again thank you! Have a great week. All the best, Jan |
Beta Was this translation helpful? Give feedback.
-
JanHuss:
You’ve already picked marked a post as the solution, so the thread is automatically marked as solved. Thank you! 🙂 |
Beta Was this translation helpful? Give feedback.
This is incorrect:
.gitignore
does not affect files that have already been added. It only prevents you from accidentally adding matching new files, and from seeing them listed as “untracked files” all the time.So, what you need to do is edit your commit history to remove the file. Git - Rewriting History describes how to do that in general. There are also some tools for…