ivanwei / blog Goto Github PK
View Code? Open in Web Editor NEWMy personal blog
Home Page: https://ivanwei.github.io/blog
My personal blog
Home Page: https://ivanwei.github.io/blog
path
upload images
指令 | 效果 |
---|---|
git status | 查詢目前 unstaged 的所有檔案 |
git pull | 抓取 remote 的 commit 回 local |
git remote prune origin | 同步 local、remote 間所有 Branch 存在情況 |
指令 | 效果 |
---|---|
git clone [git url] | 下載 Git 預設的分支 |
git clone -b [branch] [git url] | 下載指定的 Git 分支 |
git clone [git url] [folder name] | 下載到指定的資料夾 |
指令 | 效果 |
---|---|
git push origin branch | local 的 repo 推到 remote |
git push --force origin feature-branch | 強制將 local 的 repo 推到 remote |
git push -u origin feature-branch | Local 的 Branch 推到 remote |
指令 | 效果 |
---|---|
git checkout . | 清除所有 unstaged 的檔案 |
git checkout -p | 逐一確認放進 staged 的檔案 |
git checkout branch name | 切換或新增 Branch |
指令 | 效果 |
---|---|
git add filename | 編輯過的檔案從 unstaged 移進 staged |
指令 | 效果 |
---|---|
git commit | 開啟 Vim 編輯 commit message |
git commit -m 'message' | 快速編輯 commit message |
指令 | 效果 |
---|---|
git rebase target's branch | 目前 Branch commit 的狀態先追上 Target Branch 的 commit 記錄後,再將 Branch commit 記錄接續其後 |
指令 | 效果 |
---|---|
git log -S keyword filepath | 找 filepath 的 commit 記錄並只顯示有符合 keyword 的 commit 記錄 |
git log --all --decorate --oneline --graph | 畫 commit tree |
套件: Gitgraph.js 、 GitUp
指令 | 效果 |
---|---|
git show commit | 顯示 commit 的修改記錄 |
https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html
~:安裝小版號的最新版。
e.g. ~1.2.1,現在最新 1.3.0,1.2.X 最後的小版號是 8,此時只安裝 1.2.8,miss 1.3.0
^:安裝第一個數字下的最新號。e.g. 1.2.1,現在最新 2.1.0,1.X.X 最後的版號是 1.7.3,此時只安裝 1.7.3
*:安裝最新版
Difference between tilde(~) and caret(^) in package.json
來源:http://stackoverflow.com/questions/22343224/difference-between-tilde-and-caret-in-package-json
<mark>
做到 highlight 效果
推薦 Codenvy,terminal 延遲滿小,有免費額度,已被 Red Hat 收購
gsutils -m
SasS → End user
PaaS → 工程師
IaaS → Diy ,什麼都自己來吧
$$
: 可取 env 的值$
: 可取 substitutions 的值_
: 自定義的 substitutions 最前面必須加上底線A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.