Linked Questions

5 votes
1 answer
2k views

So there was a file in one of my projects which was deleted, no one knows when or why, it's just gonne. (a few months probably). Problem is i only know a part of the name, not the full name. How can i ...
lordZ3d's user avatar
  • 641
0 votes
2 answers
985 views

by mistake I used "git rm my_file" in my branch. After some commits, merges and... now I'm trying to get the file back from master branch, I'm using "git rebase master" and it says ...
Esmail Mahjoor's user avatar
1 vote
1 answer
310 views

Here's my case: A file been added, removed and added again (same name). How do I track time stamp prior to it's most recently adding? file: file.c ---> null ---> file.c status: added ...
Rahn's user avatar
  • 5,565
0 votes
1 answer
208 views

I have a project with a lot of subdirs, and somewhere in there in some deep subdir there was a file called foo.py. Couple years ago it was deleted, the delete was committed and pushed. How can I see ...
kozyr's user avatar
  • 1,274
1 vote
0 answers
67 views

I just realized a file that I had a long time ago was deleted, and I want to find the specific commit in which it was deleted. I'm using Bitbucket and VsCode.
gkeenley's user avatar
  • 7,648
0 votes
0 answers
32 views

I found a reference on a public repository for a file that is now no longer in master. What is the fastest way to find the commit that first (or last) contained that file?
Paul Razvan Berg's user avatar
3248 votes
30 answers
1.2m views

Say I'm in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I discover that I need to restore that file after deleting it. I know I can ...
avdgaag's user avatar
  • 42.3k
1719 votes
11 answers
516k views

I have a Git repository with n commits. I have a file that I need, and that used to be in the repository, and that I suddenly look for and think "Oh! Where'd that file go?" Is there a (series of) ...
Terra Kestrel's user avatar
419 votes
9 answers
174k views

I know Git stores information of when files get deleted and I am able to check individual commits to see which files have been removed, but is there a command that would generate a list of every ...
Toby's user avatar
  • 8,842
103 votes
2 answers
30k views

Despite reading lots of other posts regarding GIT and moved files I still struggle to understand how to trace the full history. Doing gitk myfile as suggested here seems to only show history until ...
Pengin's user avatar
  • 4,772
17 votes
2 answers
21k views

I installed git-filter-repo via scoop, tried multiple git filter-repo commands e.g. git filter-repo -h, they all logged nothing, no warning or error, just nothing. Tried rebooting, reinstalling, and ...
Wenfang Du's user avatar
15 votes
2 answers
14k views

Git does not track directories as such. It only tracks files that live in some directory. (See How can I add an empty directory to a Git repository?) However, if I have certain history of commits I ...
Uwe Geuder's user avatar
  • 2,335
8 votes
3 answers
3k views

I have three files Shell-ijk-ArrayList.java, Shell-ijk-Vektor.java and Shell-ikj-ArrayList.java in this git-repository. I have "merged" them manually to MatrixMultiplication.java. Now I would like to ...
Martin Thoma's user avatar
5 votes
2 answers
826 views

A question from a beginner: there are several ways to search in git history. To me, it is not clear what, the difference between the commands really is: git log, e.g. git log -S 'for what you search' ...
Christoph's user avatar
  • 7,267
2 votes
3 answers
1k views

I'm trying to track down who removed some code on a particular file. I don't know when it was but certainly within the past month. Is there a way to list history of code changes and details on a ...
PositiveGuy's user avatar
  • 20.6k

15 30 50 per page