簡易 GIT 教學

參考連結一

參考連結二

前言

在做報告或專案的時候...

事前準備

一份網站的程式碼

安裝

for windows: GitHub Desktop

註冊 GitHub

https://github.com

原理

普通的資料夾

git init

實作

git config --global user.email "you@example.com"

git config --global user.name "Your Name"

git config --global alias.lg "log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"

git init

git add .

git commit

git remote origin xxx

git push origin master

git lg

git branch XXX

git checkout XXX

gh-pages

GIT 教學

By 球魚

GIT 教學

  • 773