Questions tagged [revision-history]
226 questions
817
votes
7 answers
Go to particular revision
I cloned a git repository of a certain project. Can I turn the files to the initial state and when I review the files go to revision 2, 3, 4 ... most recent? I'd like to have an overview of how the project was evolving.

xralf
- 3,312
- 45
- 129
- 200
546
votes
6 answers
Unable to show a Git tree in terminal
Killswitchcollective.com's old article, 30 June 2009, has the following inputs and outputs
git co master
git merge [your_branch]
git push
upstream A-B-C-D-E A-B-C-D-E-F-G
\ ----> \
your branch …

Léo Léopold Hertz 준영
- 134,464
- 179
- 445
- 697
305
votes
6 answers
How can I split up a Git commit buried in history?
I flubbed up my history and want to do some changes to it. Problem is, I have a commit with two unrelated changes, and this commit is surrounded by some other changes in my local (non-pushed) history.
I want to split up this commit before I push it…

Ben
- 7,692
- 15
- 49
- 64
261
votes
19 answers
What is the Git equivalent for revision number?
We use SVN at work, but for my personal projects I decided to use Git. So I installed Git yesterday, and I wonder what is the revision number equivalent in Git.
Let's say we work on version 3.0.8 and every bug fix has its own revision number we can…

Radek
- 13,813
- 52
- 161
- 255
236
votes
3 answers
Does deleting a branch in git remove it from the history?
Coming from svn, just starting to become familiar with git.
When a branch is deleted in git, is it removed from the history?
In svn, you can easily recover a branch by reverting the delete operation (reverse merge). Like all deletes in svn, the…

Ken Liu
- 22,503
- 19
- 75
- 98
196
votes
7 answers
How can I see local history changes in Visual Studio Code?
I'm looking for a way to see my local history changes.
Kind of the equivalent way in WebStorm:

Idan Dagan
- 10,273
- 5
- 34
- 41
156
votes
10 answers
How can I view file history in Git?
With Subversion I could use TortoiseSVN to view the history/log of a file.
How can I do this with Git?
I am just looking for the history record for a particular file, and then the ability to compare the different versions.

mrblah
- 99,669
- 140
- 310
- 420
149
votes
3 answers
How do I reword the very first git commit message?
I have a working tree containing 3 commmits:
➜ ~myproject git:(master) git log
commit a99cce8240495de29254b5df8745e41815db5a75
Author: My Name
Date: Thu Aug 16 00:59:05 2012 +0200
.gitignore edits
commit…

Henrik
- 2,421
- 4
- 25
- 33
141
votes
4 answers
Create a submodule repository from a folder and keep its git commit history
I have a web application that explores other web applications in a particular way. It contains some web demos in a demos folder and one of the demo should now have it's own repository. I would like to create a separate repository for this demo…

GabLeRoux
- 16,715
- 16
- 63
- 81
31
votes
3 answers
See history in GitHub after folder rename
After renaming a folder (git mv foldername newfoldername) the history of this folder in Github has gone. I can still view the full history of any file in the folder if I clone the repro and run...
git log --follow ./newfoldername/file
But is it…

Patrick Clancey
- 1,330
- 1
- 14
- 22
24
votes
2 answers
Store all data changes with every details (like Stackoverflow)
I have system written using Codeigniter and as a database using MySQL. System have user, usergroups with different privileges and etc. Have lots of mysql tables which have many to many relationships.
Some of the tables I…

safarov
- 7,793
- 2
- 36
- 52
20
votes
2 answers
git filter-branch --msg-filter to reword a pushed commit message
How can I reword the message of an old commit that is already pushed to a private remote?
I want to keep the time stamps and tags.
I found this command here:
git filter-branch -f --msg-filter \
'sed "s///g"' -- --all
In…

Tenjix
- 539
- 3
- 12
19
votes
19 answers
Is there any place to host your code online?
There are many free online services which provides you with large spaces to store your personal materials, mails, etc. But is there any place that can let us host our code - which keeps the change history?
Google Code or SourceForge may not be a…

Baiyan Huang
- 6,463
- 8
- 45
- 72
16
votes
4 answers
Where does IntelliJ IDEA keep local history files?
My company has a policy about keeping source code in encrypted storage when on local developer machines. Where does IntelliJ IDEA keep the copy of the code changes that is used to drive its local history feature?

rakslice
- 8,742
- 4
- 53
- 57
13
votes
2 answers
How do I clone, fetch or sparse checkout a single directory or a list of directories from git repository?
How do I clone, fetch or sparse checkout a single file or directory or a list of files or directories from a git repository avoiding downloading the entire history or at least keeping history download at minimum?
For the benefit of people landing…

Richard Gomes
- 5,675
- 2
- 44
- 50