version-control

Delete a specific commit knowing commit id

不羁的心 提交于 2020-02-22 08:10:10
问题 Lets say i have a repo (git version 1.7.1) that contains following commits A -> B -> C -> D ->E and my HEAD is on E . Now i want to delete C while keeping everything same like A -> B -> D -> E . Can you help me how to do it? 回答1: You can do this with git rebase -i B . Note however, that D and E will be rewritten (get different commit SHAs), so the result will be A -> B -> D' -> E' . The content of E' should be equivalent to E (minus the changes that had been made in C which you are now

Delete a specific commit knowing commit id

非 Y 不嫁゛ 提交于 2020-02-22 08:08:38
问题 Lets say i have a repo (git version 1.7.1) that contains following commits A -> B -> C -> D ->E and my HEAD is on E . Now i want to delete C while keeping everything same like A -> B -> D -> E . Can you help me how to do it? 回答1: You can do this with git rebase -i B . Note however, that D and E will be rewritten (get different commit SHAs), so the result will be A -> B -> D' -> E' . The content of E' should be equivalent to E (minus the changes that had been made in C which you are now

Delete a specific commit knowing commit id

落花浮王杯 提交于 2020-02-22 08:01:25
问题 Lets say i have a repo (git version 1.7.1) that contains following commits A -> B -> C -> D ->E and my HEAD is on E . Now i want to delete C while keeping everything same like A -> B -> D -> E . Can you help me how to do it? 回答1: You can do this with git rebase -i B . Note however, that D and E will be rewritten (get different commit SHAs), so the result will be A -> B -> D' -> E' . The content of E' should be equivalent to E (minus the changes that had been made in C which you are now

What version number scheme for poorly planned, branched, and schizophrenic application

纵然是瞬间 提交于 2020-02-20 08:36:42
问题 I'm looking for a version numbering scheme/pattern/system for an application that is currently branched into several versions with shell game style release dates. This has made versioning a nightmare. I'd like to just use the typical Major.Minor.Revision however this will break down for me quickly the way things are presently run around here. Here is my inventory... 1.0.0 - Production version. 1.0.1 - Production revision version with bug fixes. 1.1.0 - Production minor version with new

What version number scheme for poorly planned, branched, and schizophrenic application

守給你的承諾、 提交于 2020-02-20 08:36:00
问题 I'm looking for a version numbering scheme/pattern/system for an application that is currently branched into several versions with shell game style release dates. This has made versioning a nightmare. I'd like to just use the typical Major.Minor.Revision however this will break down for me quickly the way things are presently run around here. Here is my inventory... 1.0.0 - Production version. 1.0.1 - Production revision version with bug fixes. 1.1.0 - Production minor version with new

How to manage the version number in Git?

喜夏-厌秋 提交于 2020-02-17 06:39:32
问题 Let's imagine the blerp command line tool maintained on git. This tool has the (hidden) --version option which returns its version (let's say 0.1.2 ) and another --commit which returns the commit number from which it was built. Both the version and the commit number are hard-coded on the code base. Now I make a bugfix then commit and rebuild my program. I will still see 0.1.2 although this new version differ from the original 0.1.2. Only the commit will tell me that it is not the same 0.1.2.

Git: Prevent fast-forward merges only when merging external branches into master

自闭症网瘾萝莉.ら 提交于 2020-02-13 20:33:23
问题 In order to make it easy to see when feature branches are merged to master, one can use Git's --no-ff option when merging their feature branch into master. One way to accomplish this without needing to type --no-ff is to disable fast-forward merges into master entirely: git config branch.master.mergeoptions --no-ff However, this is clumsy since it also prevents fast-forward merges when simply merging upstream changes in master to a local copy of master (merge commits are created for normal

which version control is best suited for me? [closed]

穿精又带淫゛_ 提交于 2020-02-08 04:48:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I know there are lots of questions with this title but I could find one which could clearly help me decide. I'm a part game developing

How to merge branch back to main branch and avoid tree conflicts - TortoiseSVN

安稳与你 提交于 2020-02-06 07:26:25
问题 I have source files managed in SVN using TortoiseSVN. I had added files and committed them to a revision, and subsequently decided to branch. I branched with the files I needed, and performed a delete on the trunk of the files that wasn't intended to be used. Now I'm attempting to reintegrate the branch to the main trunk. Using tortoise, I have merged from trunk to branch the range of revisions from AFTER the delete on the trunk to head. This brings the branch up to date. Now I switch to the

When would you use .git/info/exclude instead of ~/.gitignore (core.excludesFile) to exclude files?

本秂侑毒 提交于 2020-02-04 08:40:22
问题 I am little bit confused as to when would you use .git/info/exclude instead of ~/.gitignore (core.excludesFile) to exclude files? I am clear when to use .gitignore file present in project repository which is specific to that project, version-controlled and shared with other repo via clone but I am unable to understand difference between the above two somewhat user specific files to be ignored. Thus, I am looking for difference between ~/.gitignore and .git/info/exclude and not between