1 | *, *:after, *:before { |
圖片最大寬度
1 | img{ |
高滿版
1 | html,body{ |
部門分工合作,同事架起了在centOS 系統下的HA架構。
資料庫也設定了複寫機制。
由我這邊寫個簡單的程式去跑跑看這個架構是否會出狀況,所以需要簡單的CRUD操作網頁介面。
於是這個簡單的CODE就產生了…
Git flow 介紹
長期分支
master
develop
任務分支
由長期分支衍伸出來的分支
feature
release
hotfix
git pull 就是表示一個fetch 跟一個merge
git pull – rebase,它表示的是一個FETCH 以及一個rebase
git checkout 是移動head 位置
reset 移動分支到對應commit 位置
1個 commit 只做一件事
1個 feature 做一個功能 做好購物車 4~5 api 3 css
git cherry-pick c2 c4
git reset HEAD^ 分支前往特定commit
udemy
echo “blob 10\0hello git” | shasum
echo shasum -a 256 filename
新增檔案至stage後反悔
git rm –cached test.txt
修改既有檔案至stage後反悔
git ls-files -s
git restore –stage file1.txt
git ls-files -s
git restore file1.txt
git log
git log –oneline
git log -2
git log oneline -2
git log –after=’2020-05-20’
git log –before=’2020-05-21’
git shortlog
git log –stat
git init (initialize an empty git repository)
git status (show the working tree status)
git add (add file cntents to the index)
git rm (Remove files from the working tree and from the index)
git restore(Restore working tree files)
git commit (Records the changes to repository)
git log (show commit logs)
git ls-files
-s(Show staged contents’ mode bits,object name and stage number in the output)
git config –list
head is a special pointer
Related with current active branch
Always point to the latest commit
git checkout(change the current active branch)
git checkout -b
git diff
git diff –cached
恢復文件的另一種方式
git checkout README.md
git rest HEAD^ –hard
git reset ORIG_HEAD –hard
git add remote origin URL
git push origin master
git clone URL
git clone URL rename
git remote remove origin
git remote add my-origin https://
列出遠程branch
git branch -a
git branch -r
git remote show origin
git fetch
git pull = git fecth + git merge
git gc
壓縮物件