Page 1 of 1

How to move files into newly made git repository

Posted: Tue Oct 18, 2016 8:24 pm
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?

Re: How to move files into newly made git repository

Posted: Wed Oct 19, 2016 5:32 pm
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.

Re: How to move files into newly made git repository

Posted: Wed Oct 19, 2016 6:06 pm
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!