2011年5月4日 星期三

Git 初學筆記 – 指令操作教學

Git 是分散式的版本控制系統, 從架設、簡易操作、設定, 此篇主要是整理 基本操作、遠端操作 等.

註: Git 的範圍太廣了, 把這篇當作是初學入門就好了. :)
注意事項

由 project/.git/config 可知: (若有更多, 亦可由此得知)

    origin(remote) 是 Repository 的版本
    master(branch) 是 local 端, 正在修改的版本

平常沒事不要去動到 origin, 如果動到, 可用 git reset –hard 回覆到沒修改的狀態.

Git 新增檔案

    git add . # 將資料先暫存到 staging area, add 之後再新增的資料, 於此次 commit 不會含在裡面.
    git add filename
    git add modify-file # 修改過的檔案, 也要 add. (不然 commit 要加上 -a 的參數)
    git add -u # 只加修改過的檔案, 新增的檔案不加入.
    git add -i # 進入互動模式

Git 刪除檔案

    git rm filename

Git 修改檔名、搬移目錄

    git mv filename new-filename

Git status 看目前的狀態

    git status # 看目前檔案的狀態

Git Commit

    git commit
    git commit -m ‘commit message’
    git commit -a -m ‘commit -message’ # 將所有修改過得檔案都 commit, 但是 新增的檔案 還是得要先 add.
    git commit -a -v # -v 可以看到檔案哪些內容有被更改, -a 把所有修改的檔案都 commit

Git 產生新的 branch

    git branch # 列出目前有多少 branch
    git branch new-branch # 產生新的 branch (名稱: new-branch), 若沒有特別指定, 會由目前所在的 branch / master 直接複製一份.
    git branch new-branch master # 由 master 產生新的 branch(new-branch)
    git branch new-branch v1 # 由 tag(v1) 產生新的 branch(new-branch)
    git branch -d new-branch # 刪除 new-branch
    git branch -D new-branch # 強制刪除 new-branch
    git checkout -b new-branch test # 產生新的 branch, 並同時切換過去 new-branch
    # 與 remote repository 有關
    git branch -r # 列出所有 Repository branch
    git branch -a # 列出所有 branch

Git checkout 切換 branch

    git checkout branch-name # 切換到 branch-name
    git checkout master # 切換到 master
    git checkout -b new-branch master # 從 master 建立新的 new-branch, 並同時切換過去 new-branch
    git checkout -b newbranch # 由現在的環境為基礎, 建立新的 branch
    git checkout -b newbranch origin # 於 origin 的基礎, 建立新的 branch
    git checkout filename # 還原檔案到 Repository 狀態
    git checkout HEAD . # 將所有檔案都 checkout 出來(最後一次 commit 的版本), 注意, 若有修改的檔案都會被還原到上一版. (git checkout -f 亦可)
    git checkout xxxx . # 將所有檔案都 checkout 出來(xxxx commit 的版本, xxxx 是 commit 的編號前四碼), 注意, 若有修改的檔案都會被還原到上一版.
    git checkout — * # 恢復到上一次 Commit 的狀態(* 改成檔名, 就可以只恢復那個檔案)

Git diff

    git diff master # 與 Master 有哪些資料不同
    git diff –cached # 比較 staging area 跟本來的 Repository
    git diff tag1 tag2 # tag1, 與 tag2 的 diff
    git diff tag1:file1 tag2:file2 # tag1, 與 tag2 的 file1, file2 的 diff
    git diff # 比較 目前位置 與 staging area
    git diff –cached # 比較 staging area 與 Repository 差異
    git diff HEAD # 比較目前位置 與 Repository 差別
    git diff new-branch # 比較目前位置 與 branch(new-branch) 的差別
    git diff –stat

Git Tag

    git tag v1 ebff # log 是 commit ebff810c461ad1924fc422fd1d01db23d858773b 的內容, 設定簡短好記得 Tag: v1
    git tag 中文 ebff # tag 也可以下中文, 任何文字都可以
    git tag -d 中文 # 把 tag=中文 刪掉

Git log

    git log # 將所有 log 秀出
    git log –all # 秀出所有的 log (含 branch)
    git log -p # 將所有 log 和修改過得檔案內容列出
    git log –stat –summary # 查每個版本間的更動檔案和行數
    git log filename # 這個檔案的所有 log
    git log directory # 這個目錄的所有 log
    git log -S’foo()’ # log 裡面有 foo() 這字串的.
    git log –no-merges # 不要秀出 merge 的 log
    git log –since="2 weeks ago" # 最後這 2週的 log
    git log –pretty=oneline # 秀 log 的方式
    git log –pretty=short # 秀 log 的方式
    git log –pretty=format:’%h was %an, %ar, message: %s’
    git log –pretty=format:’%h : %s’ –graph # 會有簡單的文字圖形化, 分支等.
    git log –pretty=format:’%h : %s’ –topo-order –graph # 依照主分支排序
    git log –pretty=format:’%h : %s’ –date-order –graph # 依照時間排序

Git show

    git show ebff # 查 log 是 commit ebff810c461ad1924fc422fd1d01db23d858773b 的內容
    git show v1 # 查 tag:v1 的修改內容
    git show v1:test.txt # 查 tag:v1 的 test.txt 檔案修改內容
    git show HEAD # 此版本修改的資料
    git show HEAD^ # 前一版修改的資料
    git show HEAD^^ # 前前一版修改的資料
    git show HEAD~4 # 前前前前一版修改的資料

Git reset 還原

    git reset –hard HEAD # 還原到最前面
    git reset –hard HEAD~3
    git reset –soft HEAD~3
    git reset HEAD filename # 從 staging area 狀態回到 unstaging 或 untracked (檔案內容並不會改變)

Git grep

    git grep "te" v1 # 查 v1 是否有 "te" 的字串
    git grep "te" # 查現在版本是否有 "te" 的字串

Git stash 暫存

    git stash # 丟進暫存區
    git stash list # 列出所有暫存區的資料
    git stash pop # 取出最新的一筆, 並移除.
    git stash apply # 取出最新的一筆 stash 暫存資料. 但是 stash 資料不移除
    git stash clear # 把 stash 都清掉

Git merge 合併

    git merge
    git merge master
    git merge new-branch
    下述轉載自: ihower 的 Git 版本控制系統(2) 開 branch 分支和操作遠端 repo.x

        Straight merge 預設的合併模式,會有全部的被合併的 branch commits 記錄加上一個 merge-commit,看線圖會有兩條 Parents 線,並保留所有 commit log。
        Squashed commit 壓縮成只有一個 merge-commit,不會有被合併的 log。SVN 的 merge 即是如此。
        cherry-pick 只合併指定的 commit
        rebase 變更 branch 的分支點:找到要合併的兩個 branch 的共同的祖先,然後先只用要被 merge 的 branch 來 commit 一遍,然後再用目前 branch 再 commit 上去。這方式僅適合還沒分享給別人的 local branch,因為等於砍掉重練 commit log。

    指令操作

        git merge # 合併另一個 branch,若沒有 conflict 衝突會直接 commit。若需要解決衝突則會再多一個 commit。
        git merge –squash # 將另一個 branch 的 commit 合併為一筆,特別適合需要做實驗的 fixes bug 或 new feature,最後只留結果。合併完不會幫你先 commit。
        git cherry-pick 321d76f # 只合併特定其中一個 commit。如果要合併多個,可以加上 -n 指令就不會先幫你 commit,這樣可以多 pick幾個要合併的 commit,最後再 git commit 即可。

Git blame

    git blame filename # 關於此檔案的所有 commit 紀錄

Git 還原已被刪除的檔案

    git ls-files -d # 查看已刪除的檔案
    git ls-files -d | xargs git checkout — # 將已刪除的檔案還原

Git 維護

    git gc # 整理前和整理後的差異, 可由: git count-objects 看到.
    git fsck –full

Git revert 資料還原

    git revert HEAD # 回到前一次 commit 的狀態
    git revert HEAD^ # 回到前前一次 commit 的狀態
    git reset HEAD filename # 從 staging area 狀態回到 unstaging 或 untracked (檔案內容並不會改變)
    git checkout filename # 從 unstaging 狀態回到最初 Repository 的檔案(檔案內容變回修改前)

以下與 遠端 Repository 相關
Git remote 維護遠端檔案

    git remote
    git remote add new-branch http://git.example.com.tw/project.git # 增加遠端 Repository 的 branch(origin -> project)
    git remote show # 秀出現在有多少 Repository
    git remote rm new-branch # 刪掉
    git remote update # 更新所有 Repository branch
    git branch -r # 列出所有 Repository branch

抓取 / 切換 Repository 的 branch

    git fetch origin
    git checkout –track -b reps-branch origin/reps-branch # 抓取 reps-branch, 並將此 branch 建立於 local 的 reps-branch

刪除 Repository 的 branch

    git push origin :heads/reps-branch

iPhone 常用路徑說明

==========================================================

【電腦】

電腦跟iTunes同步的應用程式資料夾 (預設)
C:\Documents and Settings\使用者名稱\My Documents\My Music\iTunes\iTunes Media\Mobile Applications\

電腦用iTunes做備份的位置 ( Windows XP )
C:\Documents and Settings\使用者名稱\Application Data\Apple Computer\MobileSync\Backup\

電腦用iTunes做備份的位置 ( Windows Vista、Windows 7 )
C:\使用者\使用者名稱\AppData\Roaming\Apple Computer\MobileSync\Backup\

電腦用iTunes做備份的位置 ( Mac )
~/資源庫/Application Support/MobileSync/Backup/

==========================================================

【iTunes】

iTunes同步的應用程式 ( ipa )
/private/var/mobile/Applications/

iTunes同步的音樂 ( mp3、m4a、wav、aac、aiff )
/private/var/mobile/Media/iTunes_Control/Music/

iTunes同步的影片 ( mp4、mov、m4v )
/private/var/mobile/Media/iTunes_Control/Music/

iTunes同步的鈴聲 ( m4r )
/private/var/mobile/Media/itunes_control/Ringtones/

iTunes同步的圖片 ( jpg、png、gif )
/private/var/mobile/Media/Photos/Thumbs/

iTunes同步的電話簿 ( Windows通訊錄 )
/private/var/mobile/Library/AddressBook/

==========================================================

【Cydia】

Cydia安裝的應用程式 ( deb )
/Applications/

Cydia的deb檔手動安裝放置位置
/private/var/root/Media/Cydia/AutoInstall/

==========================================================

【各種App應用程式】

Winterboard對應的主題位置
/Library/Themes/

SBSettings對應的主題位置
/private/var/mobile/Library/SBSettings/Themes/

MxTube下載的位置
/private/var/mobile/Media/MxTube/

Safari下載的位置
/private/var/mobile/Media/Downloads/

Safari Download下載的位置
/private/var/mobile/Media/Downloads/

Atomic Web Brower下載的位置
/private/var/mobile/Media/Downloads/

YXplayer2同步的位置
/private/var/mobile/Applications/yxplayer2/Documents/

Downloads同步的位置
/private/var/mobile/Applications/downloads/Documents/

iFile同步的位置
/private/var/mobile/Documents/

iFile看檔案產生的臨時文件 (會造成iTunes的"其他"容量莫名其妙增加) (可以全部刪除)
/private/var/spool/mdt/

GoodReader同步的位置
/private/var/mobile/Applications/goodreader/Documents/

iComic同步的位置 ( 將漫畫圖檔壓縮成.zip )
/private/var/mobile/Applications/icomic/Documents/

Stanza同步的位置
/private/var/mobile/Applications/stanza/Documents

FStream電台的設定檔
/private/var/mobile/Applications/FStream/Library/Preferences/com.sourcemac.fstream.plist

==========================================================

【iPhone系統預設的資料夾】

手機拍的照片 ( jpg )
/private/var/mobile/Media/DCIM/100APPLE/

按Power+Home鍵拍的螢幕畫面 ( png )
/private/var/mobile/Media/DCIM/100APPLE/

錄影檔 ( mov )
/private/var/mobile/Media/DCIM/100APPLE/

錄音檔 ( m4a )
/private/var/mobile/Media/Recordings/

來電鈴聲 ( m4r )
/Library/Ringtones/

簡訊鈴聲 ( caf )
/System/Library/Audio/UISounds/sms-received1.caf ( 三全音 )
/System/Library/Audio/UISounds/sms-received2.caf ( 管鐘 )
/System/Library/Audio/UISounds/sms-received3.caf ( 玻璃 )
/System/Library/Audio/UISounds/sms-received4.caf ( 銅管/管樂器 )
/System/Library/Audio/UISounds/sms-received5.caf ( 鐘琴 )
/System/Library/Audio/UISounds/sms-received6.caf ( 電子音樂 )

桌面圖庫 ( png )
/Library/Wallpaper/iPhone/

簡訊 ( db )
/private/var/mobile/Library/SMS/sms.db

電子郵件
/private/var/mobile/Library/Mail/

電子郵件信箱設定檔
/private/var/mobile/Library/Preferences/com.apple.accountsettings.plist

語音信箱
/private/var/mobile/Library/Voicemail/voicemail.db

通話紀錄
/private/var/wireless/Library/CallHistory/

聯絡人
/private/var/mobile/Library/AddressBook/

備忘錄
/private/var/mobile/Library/Notes/

行事曆
/private/var/mobile/Library/Calendar/

天氣
/private/var/mobile/Library/Weather/

股票
/private/var/mobile/Library/Stocks/

Safari的書籤
/private/var/mobile/Library/Safari/

==========================================================

【系統字型】

中文字型
/System/Library/Fonts/Cache/STHeiti-Light.ttc
/System/Library/Fonts/Cache/STHeiti-Medium.ttc

英文字型
/System/Library/Fonts/Cache/Helvetica.ttc
/System/Library/Fonts/Cache/HelveticaNeue.ttc

解鎖畫面的時間字型
/System/Library/Fonts/Cache/LockClock.ttf

備忘錄字型
/System/Library/Fonts/Cache/MarkerFeltThin.ttf

打字時的字型
/System/Library/Fonts/Cache/PhoneKeyCaps.ttf

電話鍵盤的字型
/System/Library/Fonts/Cache/PhonepadTwo.ttf

==========================================================

【桌面】

桌面的背景 (使用中)
/private/var/mobile/Library/SpringBoard/HomeBackground.jpg
/private/var/mobile/Library/SpringBoard/HomeBackgroundPortrait.jpg
/private/var/mobile/Library/SpringBoard/HomeBackgroundThumbnail.jpg

桌面的Dock背景
/System/Library/CoreServices/SpringBoard.app/SBDockBG@2x.png

桌面的Dock反射背景
/System/Library/CoreServices/SpringBoard.app/SBDockMask@2x.png

應用程式的提示圖示
/System/Library/CoreServices/SpringBoard.app/SBBadgeBG@2x.png
/System/Library/CoreServices/SpringBoard.app/SBBadgeBGMask@2x.png
/System/Library/CoreServices/SpringBoard.app/SBBadgeExclamation@2x.png
/System/Library/CoreServices/SpringBoard.app/SBBadgeTargetGlyph@2x.png

應用程式的移除圖示
/System/Library/CoreServices/SpringBoard.app/closebox@2x.png

應用程式的群組圖示
/System/Library/CoreServices/SpringBoard.app/FolderIconBG@2x.png

應用程式群組的背景
/System/Library/CoreServices/SpringBoard.app/FolderSwitcherBG@2x.png

iPod控制面版的背景
/System/Library/CoreServices/SpringBoard.app/SBLockScreenControlsLCD@2x.png

iPod播放鍵圖示
/System/Library/CoreServices/SpringBoard.app/play@2x.png

iPod暫停鍵圖示
/System/Library/CoreServices/SpringBoard.app/pause@2x.png

iPod前進鍵圖示
/System/Library/CoreServices/SpringBoard.app/nexttrack@2x.png

iPod後退鍵圖示
/System/Library/CoreServices/SpringBoard.app/prevtrack@2x.png

iPod隨機播放圖示
/System/Library/CoreServices/SpringBoard.app/recalibrateBezel@2x.png

靜音開關-ON圖示
/System/Library/CoreServices/SpringBoard.app/silent@2x.png

靜音開關-OFF圖示
/System/Library/CoreServices/SpringBoard.app/ring@2x.png

音量鍵圖示
/System/Library/CoreServices/SpringBoard.app/speaker@2x.png
/System/Library/CoreServices/SpringBoard.app/mute@2x.png

藍芽圖示
/System/Library/CoreServices/SpringBoard.app/routeButtonBlue@2x.png
/System/Library/CoreServices/SpringBoard.app/routeButtonWhite@2x.png

亮度圖示
/System/Library/CoreServices/SpringBoard.app/brightness@2x.png

==========================================================

【多工列】

多工列的背景
/System/Library/CoreServices/SpringBoard.app/FolderSwitcherBG@2x.png

多工列的應用程式關閉圖示
/System/Library/CoreServices/SpringBoard.app/SwitcherQuitBox@2x.png

多工列的方向鎖定鍵的背景
/System/Library/CoreServices/SpringBoard.app/RotationLockButton@2x.png
/System/Library/CoreServices/SpringBoard.app/RotationUnlockButton@2x.png

多工列的iPod播放鍵圖示
/System/Library/CoreServices/SpringBoard.app/MCPlay@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPlay_d@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPlay_p@2x.png

多工列的iPod暫停鍵圖示
/System/Library/CoreServices/SpringBoard.app/MCPause@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPause_d@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPause_p@2x.png

多工列的iPod前進鍵圖示
/System/Library/CoreServices/SpringBoard.app/MCNext@2x.png
/System/Library/CoreServices/SpringBoard.app/MCNext_d@2x.png
/System/Library/CoreServices/SpringBoard.app/MCNext_p@2x.png

多工列的iPod後退鍵圖示
/System/Library/CoreServices/SpringBoard.app/MCPrev@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPrev_d@2x.png
/System/Library/CoreServices/SpringBoard.app/MCPrev_p@2x.png

==========================================================

【解鎖畫面】

解鎖畫面的背景 (使用中)
/private/var/mobile/Library/SpringBoard/LockBackground.jpg
/private/var/mobile/Library/SpringBoard/LockBackgroundPortrait.jpg
/private/var/mobile/Library/SpringBoard/LockBackgroundThumbnail.jpg

解鎖畫面的時間背景
//System/Library/PrivateFrameworks/TelephonyUI.framework/BarLCD@2x.png

解鎖畫面的電池充電圖示
/System/Library/CoreServices/SpringBoard.app/BatteryBG_1@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_2@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_3@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_4@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_5@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_6@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_7@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_8@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_9@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_10@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_11@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_12@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_13@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_14@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_15@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_16@2x.png
/System/Library/CoreServices/SpringBoard.app/BatteryBG_17@2x.png

解鎖畫面的藍芽耳機充電圖示
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_1@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_2@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_3@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_4@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_5@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_6@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_7@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_8@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_9@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_10@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_11@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_12@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_13@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_14@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_15@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_16@2x.png
/System/Library/CoreServices/SpringBoard.app/HeadsetBatteryBG_17@2x.png

==========================================================

【滑桿】

解鎖滑桿的圖示
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarknobgray@2x.png

解鎖滑桿的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarbkgndlock@2x.png

來電滑桿的圖示
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarknobgreen@2x.png

來電滑桿的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarbkgnd@2x.png

關機滑桿的圖示
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarknobred@2x.png

關機滑桿的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/topbarbkgnd@2x.png

解鎖滑桿的文字顏色
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarlocktextmask@2x.png

全部滑桿的文字設定檔
/System/Library/CoreServices/SpringBoard.app/zh-TW.lproj/SpringBoard.strings

==========================================================

【按鍵】


取消按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarclear@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarclear_pressed@2x.png

灰色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombargray@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombargray_pressed@2x.png

暗灰色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombardarkgray@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombardarkgray_pressed@2x.png

白色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarwhite@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarwhite_pressed@2x.png

綠色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombargreen@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombargreen_pressed@2x.png

紅色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarred@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarred_pressed@2x.png

火紅色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarredfire@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarredfire_pressed@2x.png

藍色按鍵的背景
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarblue@2x.png
/System/Library/PrivateFrameworks/TelephonyUI.framework/bottombarblue_pressed@2x.png

==========================================================

【系統預設的應用程式圖示】

電話的圖示
/Applications/MobilePhone.app/icon@2x.png

時間的圖示
/Applications/MobileTimer.app/icon@2x.png

訊息的圖示
/Applications/MobileSMS.app/icon@2x.png

天氣的圖示
/Applications/Weather.app/icon@2x.png

行事曆的圖示
/Applications/MobileCal.app/icon@2x.png

相機的圖示
/Applications/MobileSlideShow.app/icon-Camera@2x.png

照片的圖示
/Applications/MobileSlideShow.app/icon-Photos@2x.png

語音備忘錄的圖示
/Applications/VoiceMemos.app/icon@2x.png

計算器的圖示
/Applications/Calculator.app/icon@2x.png

指南針的圖示
/Applications/Compass.app/Icon@2x.png

電子郵件的圖示
/Applications/MobileMail.app/icon@2x.png

備忘錄的圖示
/Applications/MobileNotes.app/icon@2x.png

地圖的圖示
/Applications/Maps.app/icon@2x.png

聯絡資訊的圖示
/Applications/Contacts.app/icon@2x.png

設定的圖示
/Applications/Preferences.app/icon@2x.png

股票的圖示
/Applications/Stocks.app/icon@2x.png

iPod的圖示
/Applications/MobileMusicPlayer.app/icon-MediaPlayer@2x.png

Nike+iPod的圖示
/Applications/Nike.app/icon@2x.png

App Store的圖示
/Applications/AppStore.app/icon@2x.png

iTunes的圖示
/Applications/MobileStore.app/icon@2x.png

YouTube的圖示
/Applications/YouTube.app/icon@2x.png

Safari的圖示
/Applications/MobileSafari.app/icon@2x.png

Game Center的圖示
/Applications/Game Center~iphone.app/icon@2x.png

Cydia的圖示
/Applications/Cydia.app/icon@2x.png

==========================================================

【其他】

開機的Logo圖示 (白蘋果)
/System/Library/CoreServices/SpringBoard.app/AppleLogo@2x.png

連結iTunes的圖示
/System/Library/CoreServices/SpringBoard.app/Activate@2x.png

iPod喜好等級星星圖示
/System/Library/CoreServices/SpringBoard.app/StarOff.png
/System/Library/CoreServices/SpringBoard.app/StarOn.png

==========================================================