Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: Git

Git 中在 2 個 branch 中快速切換

Posted on 2022 年 11 月 7 日2022 年 11 月 4 日 By 日落 在〈Git 中在 2 個 branch 中快速切換〉中尚無留言

假設今天在 branch docs 寫文件時,發現某個程式有 bug 需要到 master 送一個 hotfix,完成後在切換回原來的 branch docs,可以使用 git checkout - 來做到:

git checkout master
Switched to branch 'master'

git checkout -
Switched to branch 'docs'

發現這個用法,其實是因為在 bash 中要切換目錄 cd - 時,不小心把 cd 打成 git,沒想到還真的有這功能 XD

Tags:Git

複製 Github Wiki 的頁面

Posted on 2022 年 8 月 4 日2022 年 8 月 4 日 By 日落 在〈複製 Github Wiki 的頁面〉中尚無留言

在專案的 wiki 頁面,沒有檢視 raw data 的功能,所以選取、貼上很麻煩。Github 的 wiki 頁面也是使用 git 管理,因此可以透過 git clone 將頁面複製出來。

這邊以 CKIP tagger 專案當作範例,專案的 wiki 有很多頁面,wiki 的 git repository 為專案 URL 加上 .wiki。

例如 git repository 的 URL 為:

https://github.com/ckiplab/ckiptagger.git

那麼該專案的 wiki 的路徑為:

https://github.com/ckiplab/ckiptagger.wiki.git

git clone 完成以後,先在自己的 wiki 上隨便建立一個頁面,然後依樣畫葫蘆來取得自己 wiki 的 URL,然後用 git push -f 把 wiki 推上去。

Tags:Git, Github

Git 2.19 released

Posted on 2018 年 9 月 11 日2021 年 3 月 12 日 By 日落 在〈Git 2.19 released〉中尚無留言

Git 2.19 釋出!

新功能大致如下:

  • git range-diff
  • git grep 功能加強
  • branch 排序方式
  • 目錄重新命名偵測
  • …. 其他
詳細內容請參考:Highlights from Git 2.19
Tags:Git

Ubuntu PPA for new version of Git

Posted on 2016 年 3 月 17 日2023 年 1 月 8 日 By 日落 在〈Ubuntu PPA for new version of Git〉中尚無留言

舊版本的 git 有安全性漏洞,需要升級到 2.7.1 以上版本
server and client side remote code execution through a buffer overflow in all git versions before 2.7.1 (unpublished ᴄᴠᴇ-2016-2324 and ᴄᴠᴇ‑2016‑2315)

Ubuntu 14.04 的 git 還在 1.x,只好靠 PPA 抓新版本:

sudo add-apt-repository ppa:git-core/ppa
sudo aptitude update && sudo aptitude upgrade
Tags:Git, Ubuntu

Git 2.4.0 Released

Posted on 2015 年 5 月 5 日2021 年 3 月 12 日 By 日落 在〈Git 2.4.0 Released〉中尚無留言

as title.

Git 官方版 release notes:
https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.4.0.txt

別人整理後的漂亮版 release notes:
https://allmychanges.com/p/soft/git/

Github 對 Git 2.4 新增、修改的功能做了一份簡介:
https://github.com/blog/1994-git-2-4-atomic-pushes-push-to-deploy-and-more

Tags:Git

文章分頁

1 2 3 下一頁

其他

關於我  (About me)

小額贊助

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.