version-control

Moving Files in Git Repository

怎甘沉沦 提交于 2021-02-07 10:56:31
问题 I want to restructure my files and folders in Git repo without losing the Histories. The current Git repo has been migrated from SVN and it has got the SVN histories in it. Now, when I try to move the files around the Git repo, I am losing the current Git history, but I have the old SVN histories which got migrated from SVN. But, I want to have all the histories when I move the files and folders. I have tried git mv, log --follow, just cut and paste, etc... but nothing keeps track of the new

Moving Files in Git Repository

时间秒杀一切 提交于 2021-02-07 10:55:49
问题 I want to restructure my files and folders in Git repo without losing the Histories. The current Git repo has been migrated from SVN and it has got the SVN histories in it. Now, when I try to move the files around the Git repo, I am losing the current Git history, but I have the old SVN histories which got migrated from SVN. But, I want to have all the histories when I move the files and folders. I have tried git mv, log --follow, just cut and paste, etc... but nothing keeps track of the new

Modular Java Application on GIT repository

老子叫甜甜 提交于 2021-02-07 10:54:33
问题 I'm working on a "modular Java application", it has around 60 independent modules, all obviously "buildable" on their own. I'm trying to understand what can be the best approach to structure this type of application under GIT. I'll explain better myself: I've been working several years with SVN and it would be really easy for me to structure a project like this under a centralized version control tool such as SVN, while I'm not sure about the GIT best practices and pros/cons. With SVN: I

Modular Java Application on GIT repository

匆匆过客 提交于 2021-02-07 10:54:31
问题 I'm working on a "modular Java application", it has around 60 independent modules, all obviously "buildable" on their own. I'm trying to understand what can be the best approach to structure this type of application under GIT. I'll explain better myself: I've been working several years with SVN and it would be really easy for me to structure a project like this under a centralized version control tool such as SVN, while I'm not sure about the GIT best practices and pros/cons. With SVN: I

Modular Java Application on GIT repository

…衆ロ難τιáo~ 提交于 2021-02-07 10:54:00
问题 I'm working on a "modular Java application", it has around 60 independent modules, all obviously "buildable" on their own. I'm trying to understand what can be the best approach to structure this type of application under GIT. I'll explain better myself: I've been working several years with SVN and it would be really easy for me to structure a project like this under a centralized version control tool such as SVN, while I'm not sure about the GIT best practices and pros/cons. With SVN: I

Add line to differnent position cause conflict by cherry-pick

帅比萌擦擦* 提交于 2021-02-07 10:13:24
问题 My branch structure is: 0x1---->0x2---->0x3 /\ /\ | | master dev Common ancestors is 0x1. I cherry-pick a feature to master. Scene 1: Master branch have a.txt file. 0x1 first commit. a.txt content: 1 Then I create a branch dev, I add "2" to a.txt, 0x2 second commit 0x1 first commit a.txt content: 1 2 Then I add "3" to a.txt 0x3 third commit 0x2 second commit 0x1 first commit a.txt content: 3 1 2 I cherry-pick 0x3 to master: master> git cherry-pick 0x3 It has no conflict. Scene 2: But I modify

Eclipse: which files to store in version control for GWT project

被刻印的时光 ゝ 提交于 2021-02-07 07:21:45
问题 I'm working on a GWT project in Eclipse with Mercurial for revision control. Which files should I store under version control? Or, perhaps more succinctly, which files should I not store since they are either part of GWT or are artifacts of the build process? I'm using Eclipse Helios and GWT 2.0.4. This question would apply to any version control system: Mercurial, Subversion (SVN), CVS, etc. 回答1: If your project is located outside your workspace, I would store everything but: the bin or cls

Eclipse: which files to store in version control for GWT project

て烟熏妆下的殇ゞ 提交于 2021-02-07 07:21:31
问题 I'm working on a GWT project in Eclipse with Mercurial for revision control. Which files should I store under version control? Or, perhaps more succinctly, which files should I not store since they are either part of GWT or are artifacts of the build process? I'm using Eclipse Helios and GWT 2.0.4. This question would apply to any version control system: Mercurial, Subversion (SVN), CVS, etc. 回答1: If your project is located outside your workspace, I would store everything but: the bin or cls

Is there a way to just commit one file type extension from a folder?

北战南征 提交于 2021-02-06 15:21:45
问题 I have a folder with a lot of stuff and I would like just to commit ".c" extension files. Is there a command to do this or do I need to add each file name manually? 回答1: If you want to add all files with a specific file extension, all you have to do is specify it at the time you go to stage the files using a wildcard. git add *.c Here .c can be any extension you want. 回答2: For me, just git add *.c didn't work. I encountered fatal error like this: git add *.php The following paths are ignored

Is there a way to just commit one file type extension from a folder?

我是研究僧i 提交于 2021-02-06 15:16:27
问题 I have a folder with a lot of stuff and I would like just to commit ".c" extension files. Is there a command to do this or do I need to add each file name manually? 回答1: If you want to add all files with a specific file extension, all you have to do is specify it at the time you go to stage the files using a wildcard. git add *.c Here .c can be any extension you want. 回答2: For me, just git add *.c didn't work. I encountered fatal error like this: git add *.php The following paths are ignored