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

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
User avatar
aclassifier
Respected Member
Posts: 332
Joined: Wed Apr 25, 2012 8:52 pm

How to move files into newly made git repository

Postby aclassifier » Tue Oct 18, 2016 8:24 pm

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

Postby larry » Wed Oct 19, 2016 5:32 pm

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: 332
Joined: Wed Apr 25, 2012 8:52 pm

Postby aclassifier » Wed Oct 19, 2016 6:06 pm

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!

Who is online

Users browsing this forum: No registered users and 1 guest