Git 設定upstream

參數 -u 等同於 --set-upstream設定 upstream 可以使分支開始追蹤指定的遠端分支

只要做過一次 git push -u <remote name> <branch name>,並且成功 push 出去;本機端的 master 就會被設定去追蹤遠端的 <remote name>/<branch name> 分支

設定好 upstream 後,第二次以後要上傳分支時,就只需要透過 git push 就可以了,不必再帶 <remote name> 跟 <branch name> 等參數

git push -u  <remote name> <branch name>
git push --set-upstream  <remote name> <branch name> 意義同上

EX:

git branch --set-upstream origin sprint

 

https://zlargon.gitbooks.io/git-tutorial/content/remote/upstream.html

CSS 偽元素 after, attr

<p>这是上面代码的实现<br />
  我们有一些 <span data-descr="collection of words and punctuation">文字</span> 有一些
  <span data-descr="small popups which also hide again">提示</span><br />
  把鼠标放上去<span data-descr="not to be taken literally">看看</span>.
</p>
span[data-descr] {
  position: relative;
  text-decoration: underline;
  color: #00F;
  cursor: help;
}

span[data-descr]:hover::after {
  content: attr(data-descr);
  position: absolute;
  left: 0;
  top: 24px;
  min-width: 200px;
  border: 1px #aaaaaa solid;
  border-radius: 10px;
  background-color: #ffffcc;
  padding: 12px;
  color: #000000;
  font-size: 14px;
  z-index: 1;
}

content: " 內容有無值,決定此元素是否會出現
attr() : 於css中,用以取得特定element值的function
搭配自定義element, data-xx

content中·得已取得父元件的data-xx,接著再彈性的操控此data-xx的值
即可達成動態文字

 

https://developer.mozilla.org/zh-CN/docs/Web/CSS/::after

https://www.oxxostudio.tw/articles/201706/pseudo-element-3.html

http://www.webhek.com/post/css-content-and-attr.html

 

 

**不支援input

https://www.zhihu.com/question/21296044