Code Monkey home page Code Monkey logo

blog's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar ivanwei avatar snyk-bot avatar worldearthbot avatar

Watchers

 avatar  avatar

blog's Issues

Git 指令筆記

指令

常用

指令 效果
git status 查詢目前 unstaged 的所有檔案
git pull 抓取 remote 的 commit 回 local
git remote prune origin 同步 local、remote 間所有 Branch 存在情況

clone

指令 效果
git clone [git url] 下載 Git 預設的分支
git clone -b [branch] [git url] 下載指定的 Git 分支
git clone [git url] [folder name] 下載到指定的資料夾

push

指令 效果
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
  • push 到遠端要加 orign

checkout

指令 效果
git checkout . 清除所有 unstaged 的檔案
git checkout -p 逐一確認放進 staged 的檔案
git checkout branch name 切換或新增 Branch

add

指令 效果
git add filename 編輯過的檔案從 unstaged 移進 staged

commit

指令 效果
git commit 開啟 Vim 編輯 commit message
git commit -m 'message' 快速編輯 commit message

rebase

指令 效果
git rebase target's branch 目前 Branch commit 的狀態先追上 Target Branch 的 commit 記錄後,再將 Branch commit 記錄接續其後

log

指令 效果
git log -S keyword filepath 找 filepath 的 commit 記錄並只顯示有符合 keyword 的 commit 記錄
git log --all --decorate --oneline --graph 畫 commit tree

套件: Gitgraph.jsGitUp


show

指令 效果
git show commit 顯示 commit 的修改記錄

How to update a GitHub forked repository?

  1. git remote add upstream https://位置
  2. git fetch upstream
  3. git checkout master
  4. git rebase upstream/master

[待確認][Mac] Bash 完補

  1. 安裝 Homebrew
  2. brew install git bash-completion
  3. https://ihower.tw/blog/archives/5436
  4. http://code-worrier.com/blog/git-branch-in-bash-prompt/
  5. bash prompt git color

    開啟 bash 對 git 指令加顏色
  6. brew install bash-git-prompt

    按 Tab ,依目前輸入的關鍵字自動配對到最相近的字串
    https://github.com/magicmonty/bash-git-prompt

設定 git 走 ssh

https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html

F8 2016 筆記

F8

2016 議程


2016.04.13

Part 1 主講者 (Mark Zuckerberg)

  1. Message platform
    • 商家可以放商品,以 Carousel 形式顯現~~,客戶可以從中點選要,並即時和商家溝通~~
    • Bot
  2. Live API
    • 對開發者開放 Facebook memtions
  3. VR (產品)
    • 顯示器 + 搖控器
    • 和 Samsung 合作
      _005
  4. 環景攝影機開源

Part 2

  1. bug fix
    • 30天內修正達成率 90%
  2. Account kit (快速註冊)
    • 綠色按鈕
      _008
    • 目前有 20 個左右合作
      _009

2016.04.14

有趣的網站

Google Cloud Platform

Cloud build

  1. $$: 可取 env 的值
  2. $ : 可取 substitutions 的值
  3. _: 自定義的 substitutions 最前面必須加上底線

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.