Monday, May 4, 2015

Managing Eagle Projects with Git

Here are the commands I use to manage my Git repositories for my Eagle projects.

PROJECT_REPO is an environment variable designating my repository URL or path.  

Each project starts as a branch from a root project with a blank board or branches from another project.

Start a new Eagle project
Current directory is an empty project working directory.
git init
git remote add origin $PROJECT_REPO
git pull
git checkout origin/master
git checkout -b BRANCH-NAME

Pull an Eagle project

Current directory is an empty project working directory. 
git init
git remote add origin $PROJECT_REPO
git pull
git checkout BRANCH-NAME

Create and push a new branch
Current directory is the current project working directory.
git checkout -b NEW_BRANCH_NAME 
... make changes and commit ...
git push origin NEW-BRANCH-NAME

No comments:

Post a Comment