revision-history

Using git, how can I create a mostly history-less clone of a repository

别等时光非礼了梦想. 提交于 2019-12-08 05:33:45
问题 I have a 2 year old repository that started off as essentially a private repository, so it contained in it's history at different points: key files, encryption keys, large sets of images in various places, etc etc, in the history of the repository, all of which are no longer tracked but still exist in the history. The source is now becoming shared, since we're bringing on new developers, and I want to make a clean start with a mostly clean repository. However, during this transitional period,

git filter-branch remove all submodules from my repo

夙愿已清 提交于 2019-12-07 08:32:31
问题 Hello I have successfully rewrote history and got the 5 folders I wanted to extract using git filter-branch -f --prune-empty --tree-filter 'rm -rf <all unwanted dirs>' and kept all git history. The only remaining issue are submodules, I sill have commits doing Subproject commit <hash> and I want to completely remove ALL of those submodule commits from my git history, how can I accomplish this? 回答1: I have done it with git filter-branch -f --prune-empty --tree-filter ' git submodule deinit -f

Using git, how can I create a mostly history-less clone of a repository

爷,独闯天下 提交于 2019-12-07 03:03:28
I have a 2 year old repository that started off as essentially a private repository, so it contained in it's history at different points: key files, encryption keys, large sets of images in various places, etc etc, in the history of the repository, all of which are no longer tracked but still exist in the history. The source is now becoming shared, since we're bringing on new developers, and I want to make a clean start with a mostly clean repository. However, during this transitional period, I may have to deal with the old repository as well, sharing patches/commits between the two

With Mercurial, how do you hg log a branch with cross-branch ancestors?

亡梦爱人 提交于 2019-12-05 20:42:06
In Mercurial, I'm wanting to build a changelog of all commit messages for revisions my stable branch. Currently, I'm using: hg log -r <oldid>::<newid> where is the revision id of the changeset from the last time we pushed out code, and is stable 's tip. This works great for code changes that are only on the stable branch, but if I'm merging another branch (such as a new major version which had its own development branch), all those commit messages are omitted! Instead I only get the 1 commit from where it merged into stable . I would like some way (preferably w/ hg log ) to see these as well.

Patch not applied after it gets merged

点点圈 提交于 2019-12-05 18:44:08
Using the git flow tool, I created a feature branch (branched off dev ), made a bunch of changes, and merged the branch back onto dev . There is a file which I have modified in the feature branch. I can confirm that the revision (let's call it REV-A ) that modifies the file ( FILE-A ) is present and applied in the feature branch. However, after the merge, FILE-A is in its original (pre-merge) state on the dev branch. I can see REV-A when I do git log on dev , and if I follow the lines produced by git log --graph , I can trace this commit forward to the merge commit where I merged my feature

git clone without objects to do git log

自闭症网瘾萝莉.ら 提交于 2019-12-05 16:16:27
How can I clone a git repository without getting the actual files and all their revision deltas? I only want to be able to do git log | grep , no need to access files' contents. I would like to skip this part of the cloning: Receiving objects: 12% (359112/2981072), 432.66 MiB | 1.67 MiB/s There are some repositories whose logs I want to grep, but without downloading/checking out the whole repository, because they weigh gigabytes. Even a solution where I only get a single branch's logs (e.g. master) interests me, if that helps. Essentially I'm looking for something like svn log <repo url> for

git filter-branch remove all submodules from my repo

丶灬走出姿态 提交于 2019-12-05 13:31:13
Hello I have successfully rewrote history and got the 5 folders I wanted to extract using git filter-branch -f --prune-empty --tree-filter 'rm -rf <all unwanted dirs>' and kept all git history. The only remaining issue are submodules, I sill have commits doing Subproject commit <hash> and I want to completely remove ALL of those submodule commits from my git history, how can I accomplish this? I have done it with git filter-branch -f --prune-empty --tree-filter ' git submodule deinit -f . git rm -rf lib && rm -rf lib find . -name .gitmodules -delete' HEAD Assuming that all of my submodules

How to get a detailed list of google doc revisions in Drive API

萝らか妹 提交于 2019-12-04 10:53:35
问题 I am trying to find a way to retrieve a detailed list of Google doc revisions using Google Drive API. I have tried to implement it in Java, and it does return a list of 10 revisions. However, this list is not detailed enough. If I go to Google Drive, open this file and check the revisions through "File-see revision history", it will return the same list (of 10 revisions) as I got from the Drive API. But there is a button called "Show more detailed revisions" and it will return a detailed list

How recovery modified files in netbeans?

两盒软妹~` 提交于 2019-12-04 05:48:20
问题 I'm working at an important project. I have modified some php and css files and uploads theme. Then, i have deleted cache and the project doesn't works. I'd like recovery files at the point first the modify. Is there a way? Excuse me for my english. 回答1: You don't say which version of Netbeans you're using but if it's a recent one you can try to use the " Local History " feature. That functionality has moved a bit in recent versions but if it's available there should be a History option using

Where does IntelliJ IDEA keep local history files?

十年热恋 提交于 2019-12-03 10:44:46
My company has a policy about keeping source code encrypted on local developer machines. Where does IntelliJ IDEA keep the copy of the code changes that is used to drive its local history feature ? They are stored in ${System}/LocalHistory . See this IDEA document for the location of the IntelliJ IDEA System directory on various platforms. As a side note, if you want to turn local history off, you can do so in the maintenance registry. On windows, you can access it via Ctrl + Alt + Shift + / . Select "Registry" from the popup. In the registry dialog, find the entry localHistory.daysToKeep and