git 的 cat-file 的命令用法
命令選項
git cat-file 的命令顯示版本庫對象的內容、類型、及大小信息。
-t
Instead of the content, show the object type identified by object.
顯示對象的類型。
-s
Instead of the content, show the object size identified by object.
顯示對象的大小。
-e
Suppress all output; instead exit with zero status if object exists and is a valid object.
如果對象存在且有效,命令結束狀態返回值為0。
-p
Pretty-print the contents of object based on its type.
根據對象的類型,以優雅的方式顯示對象的內容
git 的 cat-file 的命令用法
相關推薦
git 的 cat-file 的命令用法
con 用法 ide bsp pre instead base ali pri 命令選項 git cat-file 的命令顯示版本庫對象的內容、類型、及大小信息。 -t Instead of the content, show the object type
git stash 的各項命令用法
今天在看一個bug,之前一個分支的版本是正常的,在新的分支上上加了很多日誌沒找到原因,希望回溯到之前的版本,確定下從哪個提交引入的問題,但是還不想把現在的修改提交,也不希望在Git上看到當前修改的版本(帶有大量日誌和除錯資訊)。因此呢,查查Git有沒有提供類似功能,就找到了git stash的命令。
git bash命令用法及程式碼上傳到github
1.開啟git bash $ git 輸入git命令 指導都存在了 2.檢視分支 git branch //檢視自己本地分支 (* 代表當前分支) git branch -a
Git重置命令--git reset用法總結
目錄 一.git reset的用法 1.1 第一種用法(包含路徑path) 1.2 第二種用法(不使用路徑path) 1.2.1 引數 --hard 1.2.2 引數 --soft 1.2.3 引數 --m
shell學習:顯示、讀取或拼接檔案內容:cat命令用法
cat命令用於將多個檔案連線,並將結果通過標準輸出(stdout)輸出來。 常用選項 -n, --number 從1開始對所有輸出的所有行編號-s, --squeeze-blank 替換兩行以上空白行為一行-b, --number-nonblank 對空白行不編號-
git 命令之git rebase 最詳細用法 .
git rebase 命令的功能很強大, 在《git 權威指南》一書裡,改變提交(commit)的順序,書中教了一種很複雜的方法,運用了git reset ... git cherry-pick...等等命令。 但如果用git rebase 命令,則一下就搞定。 以下面的例子來講解一下git re
Git經常使用命令總結
lob bar har github 設置 日誌 origin 解決沖突 rec 1、基礎 git config --global user.name "Your Name"設置你的倉庫username(用於標識提交者)git config --global u
wmic命令用法小例
brief isa 讀者 用戶名 creation not 詳細信息 services cname wmic就是wmic.exe,位於windows目錄底下,是一個命令行程序。WMIC可以以兩種模式執行:交互模式(Interactive mode)和非交互模式(Non-In
Linux中more和less命令用法
時間 quit ron 忽略 分頁 page tab 易用 linux中 一、more命令 more功能類似 cat ,cat命令是整個文件的內容從上到下顯示在屏幕上。 more會以一頁一頁的顯示方便使用者逐頁閱讀,而最基本的指令就是按空白鍵(space)就往下一頁顯示,按
ubuntu 中wget (下載)命令用法
-i nload linux用戶 .cn 寬帶 not found ould 包括 nod 轉載自:http://www.cnblogs.com/wuheng1991/p/5332764.html Linux wget是一個下載文件的工具,它用在命令行下。 對於Lin
Git經常使用命令
space 合並 下載 html 命令 status 內容 版本 新增 git --version 版本號號git help 幫助gitk 是個圖形化的查看工具。gitk --all 所有分支歷史-----------------------git pull 先拉git
Jar命令用法
虛擬機 人的 程序 打包成 exe lin pat 自動安裝 常見 JAR文件 JAR文件 全稱:Java Archive File , 意思是Java檔案文件。通常JAR文件是一種壓縮文件,與常見的ZIP壓縮文件兼容,通常被稱為JAR包。 JAR文件和ZIP文件的區別:在
#26 Linux kernel(內核)詳解與uname、lsmod、modinfo、depmod、insmod、rmmod、modprobe...命令用法
linux kernel(內核)詳解與uname、lsmod、modinfo、depmod、insmod、rmmod、modprobe...命令用法Linux kernel: 內核設計流派: 單內核設計,但是充分借鑒了微內核體系設計的優點,為內核引入了模塊化機制,內核高度模塊化; 內核被模塊化之
git 常用操作命令
進行 歷史 指定 demo 新的 地址 克隆 保存 txt文件 記錄下工作中,常用的Git命令操作,一個項目經常是多人協作開發,使用好git是開發人員必備的技能,下面記錄下一些基本的git操作,後續會記錄git解決沖突,合並分支,回滾,tag操作等。 克隆項目 - git
linux下file命令使用技巧
file命令使用1. windows以不同的擴展名來區分不同的文件,例如:.exe .png等2. linux下對擴展名沒有明確的要求有時就會遇到各種坑,當我們不知道是一個壓縮文件,用一些命令查看的時候,會出現各種亂碼[[email protected] ~]# cat text |he
tee命令用法
lin 常用 格式 保存到文件 不存在 多個 標準輸入 tee font 用途說明 在執行Linux命令時,我們可以把輸出重定向到文件中,比如 ls >a.txt,這時我們就不能看到輸出了,如果我們既想把輸出保存到文件中,又想在屏幕上看到輸出內容,就可以使用tee命
find命令用法整理
find命令find命令 可以定位文件,配合參數可以快速定位所要找的文件使用方法:find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]常用的幾個[expression]
關於linux的進階命令用法之來自noob的小結(1)
linux命令 寫的很雜,先這樣,下午再來細細排版與貼圖umask 查詢當前shell的mask值umask xxx 可以設置當前目錄的mask值vim .bashrc 可以編輯當前用戶shell的mask值並且永久保存,source 後生效-S 可以用rwx顯示出當前的去掉的
[js高手之路]深入淺出webpack教程系列9-打包圖片(file-loader)用法
圖片 css 文件 alt entry 處理 lan gin style [js高手之路]深入淺出webpack教程系列索引目錄: [js高手之路]深入淺出webpack教程系列1-安裝與基本打包用法和命令參數 [js高手之路]深入淺出webpack教程系列2-配置文件w
linux中wc命令用法
字節 統計字符 -- 幫助信息 linux系統 count 沒有 標準 讀取 Linux系統中的wc(Word Count)命令的功能為統計指定文件中的字節數、字數、行數,並將統計結果顯示輸出。 1.命令格式: wc [選項]文件... 2.命令功能: 統計指定文件中的字節