revision-history

How do I reword the very first git commit message?

喜你入骨 提交于 2019-11-27 19:57:00
问题 I have a working tree containing 3 commmits: ➜ ~myproject git:(master) git log commit a99cce8240495de29254b5df8745e41815db5a75 Author: My Name <my@mail.com> Date: Thu Aug 16 00:59:05 2012 +0200 .gitignore edits commit 5bccda674c7ca51e849741290530a0d48efd69e8 Author: My Name <my@mail.com> Date: Mon Aug 13 01:36:39 2012 +0200 Create .gitignore file commit 6707a66191c84ec6fbf148f8f1c3e8ac83453ae3 Author: My Name <my@mail.com> Date: Mon Aug 13 01:13:05 2012 +0200 Initial commit (with a misleading

ClearCase to Git migration

 ̄綄美尐妖づ 提交于 2019-11-27 02:01:57
We are working on converting our CC Vobs to GIT we have both base and UCM vobs, I have seen many topic with no clear steps. Is there any tool or steps that can keep history and branches? VonC No, there is no ClearCase to Git bridge, convertor or adaptor that I know of (retaining the full history, with all its events). It is best to: restrict a git repo to an UCM component (while a Vob can contain multiple component and be way too big for a Git repo to handle) add in a git repo only the last few baselines of a given components (see " Equivalent of the clearcase baseline and clearcase activities

Go to particular revision

给你一囗甜甜゛ 提交于 2019-11-26 21:14:27
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. Use git checkout <sha1> to check out a particular commit. To go to a particular version/commit run following commands. HASH-CODE you can get from git log --oneline -n 10 git reset --hard HASH-CODE Note - After reset to particular version/commit you can run git pull --rebase , if you want to bring back all the commits which are discarded. You can get a graphical view of the

Unable to show a Git tree in terminal

时光总嘲笑我的痴心妄想 提交于 2019-11-26 21:12:12
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 C-D-E G I am interested how you get the tree like-view of commits in your terminal without using Gitk or Gitx in OS/X. How can you get the tree-like view of commits in terminal? VonC How can you get the tree-like view of commits in terminal? git log --graph --oneline --all is a good start. You may get some strange letters. They are ASCII codes for colors and structure. To solve this problem add the

Does deleting a branch in git remove it from the history?

拜拜、爱过 提交于 2019-11-26 19:27:16
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 branch is never really deleted, it's just removed from the current tree. If the branch is actually deleted from the history in git, what happens to the changes that were merged from that branch? Are they retained? Branches are just pointers to commits in git. In git each commit has a complete source tree, it is a very different structure from svn where

What is the Git equivalent for revision number?

旧巷老猫 提交于 2019-11-26 15:36:49
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 use when we talk about this bug fix. So if I tag the code in Git to 3.0.8 what then I can use as a revision number or some other more detailed kind of identification? I find the hash not so user friendly for humans. Good or bad news for you, that hash IS the revision number. I also had trouble with this when I made the switch from SVN to git. You

Create a submodule repository from a folder and keep its git commit history

徘徊边缘 提交于 2019-11-26 14:52:26
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 application and make it a subpackage submodule from main repository without loosing its commit history. Is it possible to keep the commit history from the files in a repository's folder and create a repository from it and use it as a submodule instead? GabLeRoux Detailed Solution See the note at the end of this answer (last paragraph) for a quick

How can I split up a Git commit buried in history?

邮差的信 提交于 2019-11-26 12:49:05
问题 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 out, but most of the guides I\'m seeing have to do with splitting up your most recent commit, or uncommitted local changes. Is it feasible to do this to a commit that is buried in history a bit, without having to \"re-do\" my commits since then?

ClearCase to Git migration

馋奶兔 提交于 2019-11-26 09:52:30
问题 We are working on converting our CC Vobs to GIT we have both base and UCM vobs, I have seen many topic with no clear steps. Is there any tool or steps that can keep history and branches? 回答1: No, there is no ClearCase to Git bridge, convertor or adaptor that I know of (retaining the full history, with all its events). It is best to: restrict a git repo to an UCM component (while a Vob can contain multiple component and be way too big for a Git repo to handle) add in a git repo only the last

Does deleting a branch in git remove it from the history?

你离开我真会死。 提交于 2019-11-26 06:58:15
问题 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 branch is never really deleted, it\'s just removed from the current tree. If the branch is actually deleted from the history in git, what happens to the changes that were merged from that branch? Are they retained? 回答1: Branches are just pointers to