This repo suggests a way to organize Altium's files and folders to use them with Git.
- project
- .SchDoc, .PcbDoc, .PrjDoc, and .OutJob files should be in this folder.
- finals
- Gerber files, BOM, SCH, and PCB PDF's, and any other output generated files should be in this folder.
- libraries
- The libraries that you use on your project should be in this folder. (It is recommended to use libs as submodules).
- scripts
- Scripts should be in this folder.
.gitignore file is set to keep track of .SchDoc, .PcbDoc, .PrjDoc, .OutJob files, finals fodler, libraries and scripts.
-
Click in "Use this template" button, it will redirect you to the page that will create a new repository from altium_project_template:
-
Give your brand new repository a name accordingly to the project you are working on. It is, also, highly recommended to describe what this repository is about in the "Description" field. Choose if this repository will be a Public ou Private repo (can be changed later) and select "Include all branches" mark box. Then click in "Create repository from template":
-
A few seconds later, your repository will be ready to be used:
-
Now you should clone it into your local repository. To do that, click in "Clone or download" button and then in the button to copy the repo's link:
-
On GitKraken, click "File" and "Clone Repo" (Ctrl + N is the shortcut):
-
On the new window that just popped up, paste the repo's link on the "URL" field and then click in "Clone the repo!":
-
When GitKraken is finished cloning your repo, a message will be shown informing you that. Now you should click "Open Now" button:
-
If you have any component library to add as a submodule, this is the moment.
-
Now go find the local repository on your desktop (you should know where it is). Mine is at C:\Users\Celmer\Documents\GitHub, for example. Find and open the repository you have just created:
-
On this folder you can see your repository folders and files. You can explore it later. Open "project" folder:
-
Here you have .OutJob (outjob), .PcbDoc (pcb), .PrjDoc (project name), and .SchDoc (sch) files. outjob, pcb and sch files must not be renamed, but it is highly recommended to rename project name file accordingly to the project you are working on (yes, it can have the same name as the repository):
-
After renaming "project name" file, you can open it and start working (it is assumed that you know how to use Altium);
-
Install or Add the libraries to the project.
Now you can start working on the project itself. Edit the pcb.PcbDoc and sch.SchDoc files with your work.
-
After your work is done, on Altium, open outjob.OutJob file (it is in Settings>Output Job Files):
-
On the outjob.OutJob file, there is a window called "Output Containers" which has all the files that we want to generate from the project. You should go one by one and click on "Generate content". There will be a little bit of loading time on each file:
-
You can check on the "finals" folder the files that were generated. It is good to use a Gerber viewer to check the Gerber files generated:
-
If everything is ok, you should zip the GERBER and ODB folders and delete them:
Feel free to improve this ;)