Git ref
to import a project into git from say CVS
to import a project into git from say CVS
cd ~/projects/camscapa-project/ mkdir CAMS2 cp -R ../cams2-project/CAMS2/* CAMS2 cd CAMS2 mvn clean for d in `find -type d -name 'CVS'`; do rm -rf $d; done for d in `find -type d -name '.settings'`; do rm -rf $d; done for d in `find -type f -name '.project'`; do rm -rf $d; done git init git add . git commit -a -m 'all commit first time' cd .. git clone --bare ./CAMS2 ~/z-git-repos/CAMS2.git mv CAMS2 CAMS2_after_init git clone git://rpradeshik/CAMS2.git cd CAMS2 pwd # add gitigone with target classes etc., git add . git commit -m 'ingone file' . git pushTo import in eclipse
- Open "Git Perspective", do "Add existing local repo" and choose "~/projects/camscapa-project/CAMS2"
- RClick on CAMS2 node and select "Import Projects"
- in 3 radio options choose "Import as general Project", then "CAMS2", finish
- This should bring CAMS2 as project into workspace, goto java perspective
- to import single modules inside CAMS2 say "cams-dri" RClick and do maven import
- Make sure maven 304 is in eclipse installation
No comments:
Post a Comment