GIT 基礎
git 是一個分散式版本控制軟體
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
svn 屬於集中式的版本控制系統
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Subversion的工作區和版本庫是截然分開的,而Git的工作區和版本庫是如影隨形的。
git基礎控制 指令整理:
- 切換資料夾的路徑:cd “路徑名稱”
- 回到資料夾的上一層:cd ..
- 顯示資料夾底下的檔案(顯示副檔名):ls –a
- 顯示資料夾底下的檔案(顯示詳細資料):ls –al
- 建立資料夾:mkdir “資料夾名稱”
- 刪除資料夾:rmdir “資料夾名稱”
- 建立檔案:touch “檔案名稱”
- 複製檔案:cp “原始檔案名稱” “新建檔案名稱”
- 刪除檔案:rm “檔案名稱”
設定使用者資料
個人
開啟Git Bash 輸入
git config --global user.name "名稱"
git config --global user.email "設定使用者的信箱"
再輸入git config –list來確認剛剛輸入的個人資訊是否正確。
專案
需先建立了專案之後再設定
git config --local user.name "名稱"
git config --local user.email "設定使用者的信箱"
建立版控-下一篇