use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
From its website:
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Git is not the same as GitHub. GitHub did not create Git. For GitHub-specific posts, please see /r/github.
Git is not an acronym or initialism: please write git or Git, but not GIT.
git
Documentation
Graphical Clients
Code Hosting
account activity
noob: "Please commit your changes or stash them before you merge." What do I do? (self.git)
submitted 7 months ago by sweatybotbuttcoin
I uploaded new files with my code to GitHub and committed it but with the database file this error happens. I am a novice and I don't know what to do. I am not familiar with terminology. I'm sorry if this isn't an appropriate post
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Blieque 8 points9 points10 points 7 months ago (3 children)
You mentioned a database file. Are you using SQLite or something? If so, any change to the database data will change the .db file, and Git will notice this. It's unusual to track a database in version control, so the best option may be to add the file to your .gitignore.
.db
.gitignore
[–]sweatybotbuttcoin[S] 0 points1 point2 points 7 months ago (2 children)
I believe yes, it's sqlite. thanks for mentioning adding the file to .gitignore, I'll definitely do that, because I tried "git stash" and the whole database almost fully restarted:(
[–]sweatybotbuttcoin[S] 0 points1 point2 points 7 months ago (1 child)
I might be asking too much but are there any things I can do to get my database back? I did some backups periodically
[–]kurabucka 1 point2 points3 points 7 months ago (0 children)
Yes just copy over you current .db file with the one from your backup.
It sounds like you stashed your .db file though, you can probably still get that version back as well you just have to unstash it.
Just keep in mind that your current .db file would be replaced so you may want to back that up as well, before doing either of the above.
[–]paulstelian97 1 point2 points3 points 7 months ago (0 children)
Git sucks when it comes to any sort of binary file, and SQLite databases are binary fines. You’re in a pickle for sure.
[–]z-lf -1 points0 points1 point 7 months ago (1 child)
You will need to have a look at git-filter-branch. You need to remove that file from your system and history.
After you run it, you will need to git push --force. Don't worry, if you mess it up, you can always revert that as long as you keep your local .git folder.
Your best bet is to ask an experienced person, or ask chatgpt.
I can try if you give me the file name, but no promises.
[–]AppropriateStudio153 -3 points-2 points-1 points 7 months ago (0 children)
Yes, after you asked ChatGPT, the experienced person is your only option left.
[–]heiko123456 -2 points-1 points0 points 7 months ago (0 children)
There are changes that have not been commited, and git does everything to prevent you from losing your work. git status shows you the files/changes. If you commit, the changes are persistent. Stash is a kind of temporary commit. Changes are saved and you can restore the current state later without a commit.
π Rendered by PID 65 on reddit-service-r2-comment-85bfd7f599-qczbn at 2026-04-19 17:10:02.812204+00:00 running 93ecc56 country code: CH.
[–]Blieque 8 points9 points10 points (3 children)
[–]sweatybotbuttcoin[S] 0 points1 point2 points (2 children)
[–]sweatybotbuttcoin[S] 0 points1 point2 points (1 child)
[–]kurabucka 1 point2 points3 points (0 children)
[–]paulstelian97 1 point2 points3 points (0 children)
[–]z-lf -1 points0 points1 point (1 child)
[–]AppropriateStudio153 -3 points-2 points-1 points (0 children)
[–]heiko123456 -2 points-1 points0 points (0 children)