How to move files into newly made git repository Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
aclassifier
Respected Member
Posts: 507
Joined: Wed Apr 25, 2012 8:52 pm

How to move files into newly made git repository

Post by aclassifier »

I have an xTIMEcomposer (Version: Community_14.2.1) project (on OS X 10.11.6 El Capitan) with files that I need to add to a local git repository. I don't want to go to github yet.

I have made a local repository at
/Users/me/git/Aquarium and the xTIMEcomposer project is at
/Users/me/workspace/Aquarium

I don't know if the project may be added to that repository or how I do it. From inside xTIMEcomposer or in Finder? Do I make a git repository based on the project?

I use git every day at work, but the tool's specialist sets all that up..

Anybody have some time to spare to help me on this one?
You do not have the required permissions to view the files attached to this post.
View Solution
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

If you turn individual projects inside your workspace into Git repositories, xTIMEcomposer will pick these up and give you graphical interface to manage them.

For example:

Code: Select all

git init
git add Makefile src/*.xc src/*.h
git add .cproject .project
git commit -m Initial
inside each project's directory.

You might not want the project files under source control, as they change quite frequently.
User avatar
aclassifier
Respected Member
Posts: 507
Joined: Wed Apr 25, 2012 8:52 pm

Post by aclassifier »

Thanks a lot. I did this in OS X (macOS) Terminal while inside /Aquarium

Then I added this git repository in the xTIMEcomposer when pointing to /Aquarium, not /Aquarium/.git that it wouldn't accept. Now it all comes up great!

I'm on my way with git at home! Thanks again!