Git repository 入門觀念與使用

Ping-Lun Liao
2 min readJun 17, 2019

--

筆者的部落格有兩篇與git有關的文章,分別為:

  1. git 的五四三
  2. 程式碼控制軟體Git 介紹 ( Slides for Introduction to git )

而本篇為筆者要複習以前所學的筆記。我們都已經安裝好 git 了,且示範的作業系統為Lubunt 18.10。。

基本設定

在使用git的時候,會需要committer的一些資訊,例如名稱、電子郵件等,這時候我們可以透 過 git config 的指令來設定。而 git config 的詳細說明可以參考https://git-scm.com/docs/git-config。底下指令就是用來設定 committer 名稱與電子郵件:

git config --global user.name "Holan.Liao"
git config --global user.email Holan@your.email.address

也可設定編輯器(Editor),底下為設定使用 vim 做為編輯器:

git config --global core.editor vim

若是在Windows系統上時,

git config --global core.editor "'C:/Program Files/YourProgramFilePath' -multiInst -nosession"

顯示目前的設定:

git config --list

詳細內容請參考底下連結:

--

--

No responses yet