This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: GIT and CCS: repo location and files to add

Tool/software: Code Composer Studio

Hi!

I'm new to Git and I have a couple of doubts about using it in CCS:

  • I thought ".git" had to be inside the same folder where the source code is, but in the user guide, I saw a different thing. A repository is created in a folder "x" and then the project to track is "let known" to the repository. How do I proceed? What it's better to do? It's not clear.
  • I read I shouldn't keep track of files generated from build to build. What are, aside from my main source code, the files related to the CCS project to keep track of? I mean, like .cproject etc.

Thank you!

  • Hi,

    Mirco Franchetti42 said:
    I thought ".git" had to be inside the same folder where the source code is, but in the user guide, I saw a different thing. A repository is created in a folder "x" and then the project to track is "let known" to the repository. How do I proceed? What it's better to do? It's not clear.

    I do recommend to keep whole projects or even workspaces under control of git. 

    Mirco Franchetti42 said:
    I read I shouldn't keep track of files generated from build to build. What are, aside from my main source code, the files related to the CCS project to keep track of? I mean, like .cproject etc.

    Use gitignore file -> git-scm.com/.../gitignore

  • That's not what I asked. The effective place where I put my ".git" folder would be inside the project folder or outside? CCS w/ Git guide specifies to "connect" a repository with an existent project without the need of the repo to be inside that folder.

    The second part asked which files are important to CCS for keeping track of all project. I know I must ignore files created after a build but what files should I keep updated for the CCS project?
  • Mirco Franchetti42 said:
    The second part asked which files are important to CCS for keeping track of all project. I know I must ignore files created after a build but what files should I keep updated for the CCS project?

    For this question, please see:

    http://software-dl.ti.com/ccs/esd/documents/sdto_ccs_source-control.html

    Mirco Franchetti42 said:
    The effective place where I put my ".git" folder would be inside the project folder or outside? CCS w/ Git guide specifies to "connect" a repository with an existent project without the need of the repo to be inside that folder.

    I'll need to follow up with a colleague to get confirmation for this one

    Thanks

    ki

  • Thank you, Ki! I'll proceed to manage the files accordingly to the page you linked. I'll wait for the first question!

    Thanks again,
    Mirco
  • Mirco Franchetti42 said:
    The effective place where I put my ".git" folder would be inside the project folder or outside? CCS w/ Git guide specifies to "connect" a repository with an existent project without the need of the repo to be inside that folder.

    I think you will find this page helpful if you haven't had a look at it already: Using Git with CCS

    As mentioned in the document, although you could create the repository/.git folder in the parent folder of the project, it is generally not recommended by Eclipse. So it is best to create the repository in a different directory as outlined in the guide.