Git 使用記錄 (下載Git+安裝Git+設定配置姓名和Email)

1.安裝git 直接到官網下載安裝,除了 Mac/Windows 使用安裝檔(dmg/exe),其他的都用指令安裝 2.測試git 開啓終端機,輸入 git 順利的話會得到類似以下畫面的回應,代表已經安裝完成 來看看目前版本,輸入 git --version 會顯示安裝版本 3.設定個人訊息 在提交檔案之前先來設定 個人訊息 的配置,包含名字和E-mail 輸入 git config user.name "your_name" git config user.email "your_email" 如果出現 error: could not lock config file .git/config: No such file or directory 請加入 --global git config --global user.name "your_name" git config --global user.email "your_email" 之後提交檔案都會使用這組個人訊息,當然想重新設定也是沒問題 可以使用 git config --list 來查看個人訊息 想要查詢指令如何使用,輸入 git help 指令 如 git help config ...

MacBook Pro 編譯 Android 核心

上一篇已建立並編譯 Android Source Tree ,這篇記錄 Android Kernel 的編譯 上篇提到的 Android Source Tree 並不包含 Kernel 的部分,因此當你想對 Kernel 作修改時 必須另外下載 Kernel 的部分 這篇也是照著 Google 提示的操作 先掛載 android.dmg 並移動到之前建立的 android 資料夾中,建立新資料夾(Android_KERNEL)以放置 Kernel 原始碼,如果想針對不同廠商核心編譯可以再建立方便識別的資料夾(panda) 使用 git 下載 Kernel git clone https://android.googlesource.com/device/ti/panda 移動到 panda資料夾 cd panda 取得 commit message git log --max-count=1 kernel 出現的訊息會類似下圖,我們需要的部分是 Built from kernel 後面那一串訊息 (cb5fc502c60be9305c5a007be335e860d9e7c0cb) 下載想編譯的kernel ,以google的例子下載 omap $ git clone https://android.googlesource.com/kernel/common.git $ git clone https://android.googlesource.com/kernel/exynos.git $ git clone https://android.googlesource.com/kernel/goldfish.git $ git clone https://android.googlesource.com/kernel/msm.git $...

MacBook Pro 建立 Android Source Environment (不需 Ubuntu)

由於工作會轉移到 Android BSP ,先來建立環境熟悉一下,注意此篇不需建立 Ubuntu 規格: MacBook Pro (Lion) , Mac OS X 10.7 , Xcode 4.6.1 參考資料:AOSP官網 步驟直接從 Setting up Mac OS X build environment 開始即可 1. 建立 case-sensitive disk image 首先提到 Mac OS 是 case-insensitive (不區分大小寫) 但這會造成部分 git 指令的錯誤 所以建議我們製作 case-sensitive 的 disk image 你可以使用 A.launch Disk Utility and select "New Image". A size of 25GB is the minimum to complete the build, larger numbers are more future-proof. Using sparse images saves space while allowing to grow later as the need arises. Be sure to select "case sensitive, journaled" as the volume format. 或者是 B.開啓終端機,輸入以下指令 # hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg (強烈建議指令用複製貼上) 完成後在 /User/使用者 會出現 android.dmg.sparseimage...

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews