Using Filetree w/ Git - docs?
I have been loading Filetree in a fresh image, created a sample package, a sample class, a sample method. The created a MCPackage and saved it into a filetree repository (which happens to be a folder on the machine, no problem). Now, how is one associating that with git? (and github or bitbucket). Should I do a normal git thing, creating the project etc from the command line (or using SourceTree, which happens to lower my level of Git headaches). Thanks for outlining the process. I need private repos and as we do use Atlassian Bitbucket/Jira/Confluence for the project, Filetree + Git is a great answer I'd like to have working. Thx! Phil
Hi Phil, with FileTree, you need to either create the git repository on the command line with: $ git init or clone your remote hosted repository with: $ git clone <whatever the address of your repository is> then, inside the git created folder you create whatever structure you want and save the package there (with the right filetree:// repository). Then you commit, with git commit, to make sure your package version is recorded by git. A save of the package with FileTree will overwrite the previous one and erase all traces of the history (apart from the version history in the package itself, but this one is totally useless with filetree). If you want a better git integration, use gitfiletree:// instead of filetree://. Then saving the package will do a commit on the repository with the right comment (i.e. your package version comment will be the commit message) and all the packages versions will be visible when you open the gitfiletree repository (and the versions will be the git recorded data). That is, with gitfiletree your repository will look and behave as if it was a normal mcz repo. Regards, Thierry Le 02/10/2013 09:19, phil@highoctane.be a écrit :
I have been loading Filetree in a fresh image, created a sample package, a sample class, a sample method.
The created a MCPackage and saved it into a filetree repository (which happens to be a folder on the machine, no problem).
Now, how is one associating that with git? (and github or bitbucket).
Should I do a normal git thing, creating the project etc from the command line (or using SourceTree, which happens to lower my level of Git headaches).
Thanks for outlining the process.
I need private repos and as we do use Atlassian Bitbucket/Jira/Confluence for the project, Filetree + Git is a great answer I'd like to have working.
Thx! Phil
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
Hello, Ok, got it. In the meantime, I managed to get my bitbucket git stuff working and all. But I do not see gitfiltree:// in the repository types when adding a repo in Monticello, I only see filetree:// in the list, which asks me about a folder. Should I do that by hand or is there another configuration to load? Thanks for the help. Phil
Le 02/10/2013 12:17, phil@highoctane.be a écrit :
Hello,
Ok, got it. In the meantime, I managed to get my bitbucket git stuff working and all.
But I do not see gitfiltree:// in the repository types when adding a repo in Monticello, I only see filetree:// in the list, which asks me about a folder.
Yes, this is the default. Are you on Pharo 2.0?
Should I do that by hand or is there another configuration to load?
On 2.0: 1- install ConfigurationOfOSProcess from the configuration browser and do: (ConfigurationOfFileTree project version: #stable) load: 'MonticelloFileTree-Git' (if you have loaded ConfigurationOfFileTree of course!) I'm having an issue on the latest 3.0; but normally I'm storing the latest MonticelloFileTree-Git on smalltalkhub, at http://www.smalltalkhub.com/mc/ThierryGoubier/Alt30/main Gofer new url:'http://smalltalkhub.com/mc/ThierryGoubier/Alt30/main'; package: 'MonticelloFileTree-Git'; load Should work. I'd welcome any feedback you'd have on it :) Thierry
Thanks for the help.
Phil
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
participants (2)
-
Goubier Thierry -
phil@highoctane.be