Friday, September 6, 2013

Project Creation *


-- Create a new repo in GitHub for a project.
-- Create a new project in the KiCAD launcher of your choice of name and location.
-- Create a blank schematic file.
-- Create a blank layout file.
-- Push your files to the repo.

A tedious, boring console log of my process:

-- Create a new repo in GitHub for a project.

10 easy steps, no GUI or web browser needed.



1 ➜ workspace git:(master) ✗ mkdir benchbuddy

2 ➜ workspace git:(master) ✗ cd benchbuddy

3 ➜ benchbuddy git:(master) ✗ git init

4 Initialized empty Git repository in /home/george/workspace/benchbuddy/.git/

5 ➜ benchbuddy git:(master) hub create benchbuddy

6 Updating origin

7 created repository: georgeredinger/benchbuddy

8 ➜ benchbuddy git:(master) touch README.md

9 ➜ benchbuddy git:(master) ✗ git add .

10 ➜ benchbuddy git:(master) ✗ gcam "initial commit"

11 [master (root-commit) 376124e] initial commit

12 1 file changed, 0 insertions(+), 0 deletions(-)

13 create mode 100644 README.md

14 ➜ benchbuddy git:(master) git push -u origin master

15 Counting objects: 3, done.

16 Writing objects: 100% (3/3), 215 bytes, done.

17 Total 3 (delta 0), reused 0 (delta 0)

18 To git@github.com:georgeredinger/benchbuddy.git

19 * [new branch] master -> master

20 Branch master set up to track remote branch master from origin.

21 ➜ benchbuddy git:(master)

22 benchbuddy git:(master) ✗ ls

23 README.md

24 ➜ benchbuddy git:(master) ✗


-- Create a new project in the KiCAD launcher of your choice of name and location.
File -> New blank project, in the git directory, then from the command line:


➜ benchbuddy git:(master) ✗ git add .
➜ benchbuddy git:(master) ✗ gst
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: benchbuddy.pro
#
➜ benchbuddy git:(master) ✗ gcam "blank project"
[master 6b57b7e] blank project
1 file changed, 86 insertions(+)
create mode 100644 benchbuddy/benchbuddy.pro
➜ benchbuddy git:(master) git push
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 1019 bytes, done.
Total 4 (delta 0), reused 0 (delta 0)
To git@github.com:georgeredinger/benchbuddy.git
376124e..6b57b7e master -> master
--- Create a blank schematic file.
➜ benchbuddy git:(master) ✗ gcam "add blank schematic"
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# benchbuddy-cache.lib
# benchbuddy.sch
nothing added to commit but untracked files present (use "git add" to track)
➜ benchbuddy git:(master) ✗ git push
Everything up-to-date
➜ benchbuddy git:(master) ✗
-- Create a blank layout file.
➜ benchbuddy git:(master) ✗ git add .


➜ benchbuddy git:(master) ✗ gcam "add blank layout file"
[master eade405] add blank layout file
3 files changed, 151 insertions(+)
create mode 100644 benchbuddy/benchbuddy-cache.lib
create mode 100644 benchbuddy/benchbuddy.kicad_pcb
create mode 100644 benchbuddy/benchbuddy.sch
➜ benchbuddy git:(master) git push
Counting objects: 8, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.63 KiB, done.
Total 6 (delta 0), reused 0 (delta 0)
To git@github.com:georgeredinger/benchbuddy.git
6b57b7e..eade405 master -> master
➜ benchbuddy git:(master)
-- Push your files to the repo. 
woops, I pushed to github between each step, 

No comments:

Post a Comment