自使用了git後,就徹底喜歡上了,深深體會到了自由的感覺,記錄一些簡單的筆記和使用心得,僅供留跡,以備後查。。。
git clone 命令引數:
usage: git clone [options] [--]引數挺多,但常用的就幾個:-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don'
t create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from
a local repository
--no-hardlinks don'
t use local hardlinks, always copy
-s, --shared setup as
shared repository
--recursive initialize submodules in
the clone
--recurse-submodules initialize submodules in
the clone
--template directory
from
which templates will be used
--reference reference repository
-o, --origin use instead of '
origin
'to track upstream
-b, --branch
checkout
instead of the remote'
s head
-u, --upload-pack path to git-upload-pack on the remote
--depth create a shallow clone of that depth
--separate-git-dir separate git dir
from
working tree
-c, --config set config inside the new repository
1. 最簡單直接的命令
git clone ***.git2. 如果想clone到指定目錄
git clone ***.git "3. clone時建立新的分支替代預設origin head(master)指定目錄
"
git clone -b [new_branch_name] ***.git4. clone 遠端分支
git clone 命令預設的只會建立master分支,如果你想clone指定的某一遠端分支(如:dev)的話,可以如下:
a. 檢視所有分支(包括隱藏的) git branch -a 顯示所有分支,如:
*masterb. 在本地新建同名的("dev")分支,並切換到該分支remotes/origin/head -> origin/master
remotes/origin/dev
remotes/origin/master
git checkout -t origin/dev 該命令等同於:git checkout -b dev origin/dev
from:
html的一些簡單筆記
1.基本標籤 空格 小於 大於 2.層級縮排 一級二級 二級 3.無序列表 無序列表 4.有序列表 有序列表 aaabbb 5.影象 6.標題 aaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa aaaaaaa 7.超連結 x 8.框架標籤...
簡單筆記(四)
第二章 型別 運算子與表示式 10.11.25 2.1 變數名 對變數與符號常量的名字存在著一些限制。名字有字幕 與數字組成,但其第乙個字元必須為字母。下劃線 也 被看做是字母,它有時可用於命名比較長的變數以提高 可讀性。由於庫函式通常使用下劃線開頭的名字,因此 不要將這類名字用作變數名。大寫字母與...
UIApplication 簡單筆記
如何取得?很簡單 copy 下面的 code 就好,不會有第二種寫法,也完全不用考量什麼 記憶體管理。2 push notification iphone 3.0 新增的功能,用來唬爛可以滿足部分多工需求的功能。好啦,是真的還不錯 是的!搖晃時 undo 我們都知道 iphone 可以知道自己在旋轉...