Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Creating a synchronized project from a git repo

I chalk this up to: git is used to cloning the entire repo. and this is cloning the repo under the covers but using only a single dir within the repo to populate this eclipse project.

...Beth

Beth Tibbitts


On Mon, Jul 7, 2014 at 8:37 PM, Steven R. Brandt <sbrandt@xxxxxxxxxxx> wrote:
On 07/07/2014 07:14 PM, Beth Tibbitts wrote:
So, to create a new C/C++ synchronized project fro a project in a git repo, just one project, and not cloning the whole repo, and doing it in ONE STEP, here is what I've figured out for a tutorial workflow.  Comments if you think something else is simpler or otherwise better:
1. Import Projects from git
2. enter g.. Git>Projects from Git
3. Clone URI, enter URI e.g. git@xxxxxxxxxx:reponame/ptp-tutorial.git;  Next,Next unless you know and want the default git local directory destination
4. Select "Use the New Project Wizard", Finish
5. Remote>Synchronized C/C++ Project
6. Enter a)project name
         b) UNCHECK Local directory/Use default location and enter 
                     /path/to/gitrepo/ptp-tutorial/PROJDIRNAME  
                              e.g. PROJDIRNAME = 'shallow' for our tutorial sample
         c)Remote directory: enter as usual, connection name (or create it with Browse) 
                  and remote dir
7. Project Type: Makefile project/Empty Project,  Remote Toolchain e.g. Linux GCC
            (Local toolchain optional) - Finish
8. Project is created

This was not intuitive to me, it took a couple of us several tries to figure this out
  (using git as source code repository, checking out project in the process)
The critical step is 6b), using the git local repo location instead default eclipse workspace location,
        AND specifying the project name, not the head of the repo

Anybody disagree? Trying to make tutorial slides.
John E, is there anything I missed?
 
This worked well for me. It seems awkward that it can't figure out the directory, but there's probably nothing to be done about it at this point.

Cheers,
Steve



...Beth

Beth Tibbitts


On Mon, Jul 7, 2014 at 5:14 PM, John Eblen <jeblen@xxxxxxx> wrote:
Hi Beth

It shouldn't matter whether the remote project uses git. You should
be able to create a new synchronized project that points to the remote
directory. I recommend "Empty Makefile project" for the project type.


John


On Mon, Jul 7, 2014 at 1:53 PM, Beth Tibbitts <beth@xxxxxxxxxx> wrote:
Roland/John,
How should the user create a synchronized project from a remote git repo?
I'm trying to write up a simple workflow, and the one closest to our tutorial workflow for CVS doesn't work...
it doesn't complain, it just ends up with an empty project.

...Beth

Beth Tibbitts

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev



_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


Back to the top