【20160119】貌美的bootstrap模板和git安裝

安裝 git

一、在官網(http://git-scm.com/downloads)下載os版本,解壓安裝。也能夠使用brew安裝。html

二、添加sshkey前端

  • 檢查SSH keyhtml5

    cd ~/.ssh
  • 備份已有的key,(若是有的話)git

    mkdir key_backup
    
    mv id_rsa* key_backup
  • 生成SSH key程序員

    $ ssh-keygen -t rsa -C your email
    
    Generating public/private rsa key pair.
    
    Enter file in which to save the key (/Users/username/.ssh/id_rsa):
    
    Enter passphrase (empty for no passphrase):
    
    Enter same passphrase again:
    
    Your identification has been saved in yes.
    
    Your public key has been saved in id_rsa.pub.
    
    The key fingerprint is:
    SHA256:fCaDnNajwhFX6ypzvqLMQyJKSMiEo2Tl9/hgEb2WABo your mail
    The key's randomart image is:
    +---[RSA 2048]----+
    |.E.o... .        |
    |o++  ..o .       |
    |Bo ..oo +        |
    |oo  .++X         |
    |o   .+*.S o      |
    |+....ooo *       |
    |+o  = +.         |
    |.o. .*           |
    |  +o .o.         |
    +----[SHA256]-----+
  • 將SSH key添加到GitHub
    登陸到GitHub頁面,Account Settings裏面SSH Public Keys,Add another key 將生成的key(id_rsa.pub文件)內容copy到輸入框中,save。github

  • 測試連接shell

    $ ssh git@github.com
    The authenticity of host 'github.com (207.97.227.239)' can't be established.
    RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
    Are you sure you want to continue connecting (yes/no)? yes
    PTY allocation request failed on channel 0
    Hi jiang-bo! You've successfully authenticated, but GitHub does not provide shell access.
    Connection to github.com closed.

    別擔憂,這是正常狀況。bash

  • 設置我的信息dom

    $ git config --global user.name "username"
    $ git config --global user.email "your mail"

使用 git

初始化:ssh

$ mkdir foldername
$ cd foldername
$ git init
Initialized empty Git repository in /Users/xxx/.ssh/foldername/.git/

拉版本庫:

$ git clone git@github.com:oisy/ideaBootstrapTemplate.git
Cloning into 'ideaBootstrapTemplate'...
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
Checking connectivity... done.

而後提交推送

$git add .
$git commit -m "blabla"
$git push

好了,裝git就是爲了把這個貌美的前端模板傳上去。

關於這個模板

不知道是哪一個國家的程序員開發,模板上的文字都看不懂。可是功能很全,有單頁面的簡潔版,有多頁面豐富版,有動畫效果的頁面滾動,有shop模式,有多種列表,多種控件,十分可愛。下載地址:

http://github.com/oisy/ideaBootstrapTemplate.git

截圖感覺一下:

默認首頁,還有更多html5的扁平化頁面:

默認首頁

多種現成的頁面可用:

頁面

豐富可愛的圖標:
icon

使人激動的組件:

組件

商城列表:

shop

附帶記錄bash command,刪除整個目錄和內容:

$cd xxx(subdir)
$rm -rf -- dir
相關文章
相關標籤/搜索