Questions tagged [git-history]

87 questions
180
votes
4 answers

Show history of a file?

Possible Duplicate: View the change history of a file using Git versioning Sometimes I want to step through the history of a particular file. In the past I used P4V and this was very quick and intuitive. Right click on a file and select…
Chris
  • 6,076
  • 11
  • 48
  • 62
13
votes
3 answers

Azure Devops: Search Commit History of Author on ALL Branches

How do I find the commit History for Author in All Branches in Azure Devops? This option, only lets me filter by author person on a Feature Branch. Want to Search All branches.
jerrythomas38
  • 759
  • 2
  • 16
  • 41
8
votes
3 answers

Git get history of branches that i was in

I need to see the history of branches that i was using. For example i have 4 branches: master, b-1, b-2, b-1-1. Thе branch "b-1-1" is child of branch "b-1". First i was at master branch, then at branch b-1, then at branch b-1-1 , then at branch b-2,…
john2994
  • 393
  • 1
  • 3
  • 15
7
votes
2 answers

Join history of older version of the same repository

I had a repository with this history: A---B---C---D Then, this repository was "split" (basically, another repository was created with it's history beginning at 'D' with the use of git-subtrees). Now, I have this other repo with this history: # The…
Teodoro
  • 1,194
  • 8
  • 22
6
votes
1 answer

Git History extension not working in VS Code

I've used the very nice Git History extension before in VS Code, but currently when I click its button or call it up from the command palette, nothing happens. All other git functions are working fine. I just uninstalled and reinstalled the…
Jonathan Tuzman
  • 11,568
  • 18
  • 69
  • 129
6
votes
1 answer

Filter git log by author or branch

In my workflow I'm usually only interested in my own branches and some specific branches like staging or master and would like my git log to reflect that. I've come up with this command : git log --branches=staging* --author=my_name The problem is…
Scentle5S
  • 760
  • 1
  • 6
  • 13
5
votes
1 answer

Search for a file in GIT history?

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 search the files added/removed in commits (not…
lordZ3d
  • 540
  • 6
  • 20
3
votes
3 answers

How to remove all files from GIT repo history with path having colon : in filename?

I have ISCSI node filenames with colons stored in GIT repository on Debian 10…
klor
  • 1,237
  • 4
  • 12
  • 37
3
votes
1 answer

Does Git leave any evidence that a rebase ever even occurred after the fact?

I understand that a rebase rewrites history. But is there any record or sign that a rebase occurred left in the repository after the fact?
BVernon
  • 3,205
  • 5
  • 28
  • 64
3
votes
4 answers

Git - remove all history prior to a specific commit

I use git for various projects (personal repositories only), and I want to do some housekeeping. I have a downloaded git project tree that has a large history of commits. After downloading I made a few more myself. However, I do not need anything…
nmw01223
  • 1,611
  • 3
  • 23
  • 40
3
votes
4 answers

How to update my feature branch after a force push on the base branch . We only use rebase, merges are forbidden

We are working with a very simple structure in git. First we have our master branch. Below we have develop And finally we can have any feature branch We only use rebase for updating the history on our branches and then f-forwarding to the above…
3
votes
1 answer

Can I shorten the history of a git repository

At first, I made a shallow-clone. After this, I found some old commits introducing some large files. For example, these old commits replaced a binary file again and again. Now, I didn't want my local reposiotry containing these big changes. How can…
Hobin C.
  • 671
  • 1
  • 8
  • 17
3
votes
1 answer

How to make Pycharm show all git commit history for subfolders?

Since some point (probably update) Pycharm stopped showing git history for one of project subfolders. Question Does it have a functionality to enable all commit history for my sub-folder? I tried to check some options in: File -> Settings -> Version…
vitaliis
  • 4,082
  • 5
  • 18
  • 40
3
votes
2 answers

Can`t see the file history in Gitlens (on a specific project)

I have a problem with Gitlens extension. Firstly, Gitlens or Git History extension is working fine on any other project except the this Laravel project. My problem is, can`t see the file history or line history in this project. On the other hand,…
3
votes
5 answers

How to remove commits from git history but otherwise keep the graph exactly the same, including merges?

What I have: ---A----B-----C-----D--------*-----E-------> (master) \ / 1----2 (foo) What I need: ---A---------------D--------*-----E-------> (master) \ / …
Daniel Stephens
  • 2,371
  • 8
  • 34
  • 86
1
2 3 4 5 6