last day (14 days later) » 

10:29 AM
1
Q: Convert a ZF2 project to a git Repository

user3911183i'm trying to convert an existing ZF2 application to a git repository , but when i do : cd project git init git add . git commit -m 'init' cd .. git clone --bare -l project project.git rm -rf mcoreg git clone project.git project cd project git push -u origin master i lost some files and repos...

 
"convert" ? You keep using this word, I do not think it means what you think it means. Does ZF2 provide version control features ?
For a good strategy to do version control using git on a ZF2 project: stackoverflow.com/questions/15119810/…
 
i mean , i want to create a git repository from an existing ZF2 Project which contains already files ".gitignore and .gitmodules"
 
Why would it contain .gitignore and .gimodules files ? where did you get the code ? it is probably already in a git repository, in which case just clone it.
The .gitignore files lists all the patterns of files and directories that git will ignore (i.e: not version). Usually It is used to prevent the versionning of products (i.e : files that are generated at some point from the sources). The gitmodules file lists a series of submodules, which is a way to have several git repositories inside a top level git repository. This is by the way the strategy suggested by the question I linked.
 
we have get the skeleton from github.
 
so you cloned it ? git clone git://github.com/zendframework/ZendSkeletonApplication.git. If so you have a git repository... What is you problem ? Just change the remote. You have a working skeleton git repo. If you just want to clean up the history, this could be done I guess.
 
10:29 AM
thanks a lot for the clear explanation... i 'll try now to correct the stuff
 
If you still need help or have another question use this chat.
 
ok
thanks a lot
now i need time to correct the stuff
 
11:23 AM
are you there ?
when i try to git log for the repository
it gives error that it's not a git repository
 
12:20 PM
hum
Weird
Ok first off : are you on Linux or windows ? what git client do you use ?
2nd in your root directory
the directory you called project.
the one with the .gitignore and gitmodules files
do you have a .git directory
?
(it is hidden so you mioght want to enable "show hidden files" in your file navigator
 

last day (14 days later) »