Difference between revisions of "EBC Exercise 16 git"
m (→Set Up Git: Added getting started info) |
m (→Set Up Git: Added Beagle git install instructions) |
||
Line 7: | Line 7: | ||
== Set Up Git == | == Set Up Git == | ||
− | Go to [http://help.github.com/set-up-git-redirect github] and following the directions for setting up git. No need to set up your own repository right now (unless you want to), I already have one set up for you the play with. | + | Go to [http://help.github.com/set-up-git-redirect github] and following the directions for installing and setting up git. No need to set up your own repository right now (unless you want to), I already have one set up for you the play with. |
+ | |||
+ | I suggest you do this for both your host computer and your Beagle. On the Beagle use | ||
+ | <pre> | ||
+ | opkg install git | ||
+ | </pre> | ||
== Play with git locally == | == Play with git locally == |
Revision as of 08:34, 16 March 2011
git is a distributed revision control system with an emphasis on being fast. It was initially designed and developed by Linus Torvalds for Linux kernel development. The purpose of this lab is to get hands on experience with git to learn how it works and how to use it.
Much of the material here has come from Pro Git. We'll be using github to practice gitting.
Contents
Set Up Git
Go to github and following the directions for installing and setting up git. No need to set up your own repository right now (unless you want to), I already have one set up for you the play with.
I suggest you do this for both your host computer and your Beagle. On the Beagle use
opkg install git
Play with git locally
Pro Git has a nice on-line book with lots of good details. I'll lead you through many parts of it. The first chapter is Getting Started. Here are the topics:
1.1 - About Version Control 1.2 - A Short History of Git 1.3 - Git Basics 1.4 - Installing Git 1.5 - First-Time Git Setup 1.6 - Getting Help 1.7 - Summary
I'll cover Git Basics in class and you have already done parts 1.5 and 1.6 to set up for github. I suggest you take a look at Getting Help and then move on.
Download my gitLearn repository
Nice git article
Here's a nice article on a common git workflow.
Access ti/staging
Here is what I did to access the ti/staging stuff.
host $ cd ~/oe/openembedded host $ git remote add gitor git://gitorious.org/angstrom/openembedded.git host $ git fetch gitor host $ git checkout gitor/ti/staging -b ti/staging host $ cd ${OETREE} host $ wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz host $ tar -xvf bitbake-1.8.18.tar.g host $ gedit source-me.txt
Change
PATH=${OETREE}/openembedded/bitbake/bin:${ORG_PATH}
to
PATH=${OETREE}/bitbake-1.8.18/bin:${ORG_PATH}
Save and quit gedit
host $ . source-me.txt host $ cd ~/oe host $ mv angstrom-dev angstrom-dev.v0 host $ bitbake console-image