image
FINAL FANTASY XII THE ZODIAC AGE
 

Betman 發表在 痞客邦 留言(0) 人氣()

image

環境
Raspberry 3B+
LibreELEC-RPi2.arm-9.2.8
repository.gamestarter-3.0.0

Betman 發表在 痞客邦 留言(0) 人氣()

Incare 加大玻璃防窺隔熱貼(210*90cm)-四入(5色可選)銀色*4
Incare 加大玻璃防窺隔熱貼(210*90cm)-四入(5色可選)銀色*4

Betman 發表在 痞客邦 留言(0) 人氣()

這張圖片的 alt 屬性值為空,它的檔案名稱為 git-transport.png

 
 
Commit
-a
使 Git 在提交前自動預存所有已追蹤的檔案,讓你略過 git add 步驟。
要小心提交了不想傳的檔案。
-m
選項後方直接輸入提交訊息
git commit -m ‘added new benchmarks’

commit 反悔
git reset HEAD^

預設 --mixed, commit 檔案回到 changes not staged for commit, Commit 拆出來的檔案會留在工作目錄,但不會留在暫存區 
--soft : 工作目錄 暫存區 皆不變
--hard : 工作目錄 暫存區 皆丟掉
 
Checkout
復原修改檔案
git checkout — <file>…

 
Branch
依序是
1. 查看分支
2. 建立分支
3. -d 刪除分支
4. 需執行 checkout 命令以切換分支
5. checkout -b 可以同時建立分支和切換。
git branch

git branch branchname

git branch -d branchname

git checkout branchname

git checkout -b branchname

 
抓其他分支檔案
git checkout other_branch -- file.txt

 
Q. 已修改檔案(in workspace),但暫時要切換到其他分支。
A.
1. 先 commit 到目前分支,切回來後 git reset HEAD^ 拆回來繼續做。
2. git stash 暫存
 
要上傳新分支
$ push --set-upstream origin minrom
 
Stash 
git stash

git stash list

git stash apply stash@{0}

git stash drop stash@{0}

# equal to

git stash pop stash@{2}

 
Fetch & Pull
fetch 會從遠端下載更新到 local repo,並且在本地端形成相對應的分支。
 
pull 除了更新到 local repo 同時會合併到 workspace。git pull 等於 fetch + merge。
 
remote
git remote -v

git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git

 

 
Untracking files
git rm --cached example.log

The above command will delete file example.log from tracking BUT not from your local file system.
 
GITWEB
https://git-scm.com/book/zh-tw/v2/%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%8A%E7%9A%84-Git-GitWeb
https://blog.xuite.net/autosun/study/58585628-%5BGit%5D+Archlinux+%E6%9E%B6%E8%A8%AD+Git+server+%E8%88%87+Gitweb
gitweb 設定指令記錄
2035  sudo apt install gitweb

2040  cd proj/

2044  sudo mkdir gitweb

2048  sudo ln -s /proj/gerrit/review_site/git/lynx.git/ lynx.git

change projectroot to /proj/gitweb

2053  sudo vi /etc/gitweb.conf

gitweb apache config path

2058  cd /etc/apache2/

2060  vi conf-enabled/gitweb.conf

2070  sudo a2enmod cgi

2071  sudo service apache2 restart

2072  history

 
Reference
https://gitbook.tw/interview

Betman 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。