
svn && git
菩提本無樹-永不放棄
这个作者很懒,什么都没留下…
展开
-
git revert
revert last commitgit revert HEAD原创 2020-01-22 11:04:28 · 149 阅读 · 0 评论 -
git教學好網站
連猴子都能懂得git教學http://backlogtool.com/git-guide/tw/ 30 天精通 Git 版本控管http://blog.miniasp.com/post/2013/11/04/Learning-Git-Part-2-Master-Git-in-30-days.aspx Git 版本控制系統https://iho转载 2015-08-17 01:51:52 · 390 阅读 · 0 评论 -
Git 練習與基本操作
轉載自https://ihower.tw/git/basic.htmlhttp://gitimmersion.com/ 練習網址https://try.github.io/levels/1/challenges/1转载 2015-08-11 19:01:09 · 418 阅读 · 1 评论 -
repo & git 的使用方法
轉載自[Coding] repo & git 的使用方法開頭先來講幾個重要的觀念:1. Android是一個workspace裡面會包含很多project,repo主要針對android這個大workspace,而git則是針對每個project操作;所以repo的操作,都可以細化成許多對個別project的git操作喔。2. 任何的修改,都需要對應转载 2015-08-11 18:34:53 · 383 阅读 · 0 评论 -
repo & git 的使用方法
轉載自[Coding] repo & git 的使用方法開頭先來講幾個重要的觀念:1. Android是一個workspace裡面會包含很多project,repo主要針對android這個大workspace,而git則是針對每個project操作;所以repo的操作,都可以細化成許多對個別project的git操作喔。2. 任何的修改,都需要對應转载 2015-08-11 18:33:48 · 519 阅读 · 0 评论 -
How can I recover a file that I deleted in my local repo from the remote repo in Git?
轉載自http://www.quora.com/How-can-I-recover-a-file-I-deleted-in-my-local-repo-from-the-remote-repo-in-Git If the deletion has not been committed, the command below will restore the deleted file转载 2015-05-19 13:49:12 · 464 阅读 · 0 评论 -
Rename files and folders with git
轉載自http://www.patrick-wied.at/blog/rename-files-and-folders-with-git Rename files and folders with gitAs easy as it sounds, it turned out renaming files and folders with git can sometimes转载 2015-05-19 13:49:15 · 2092 阅读 · 0 评论 -
How to pad a file with “FF” using dd?
轉載自http://superuser.com/questions/274972/how-to-pad-a-file-with-ff-using-dd $ dd if=/dev/zero ibs=1k count=100 | tr "\000" "\377" >paddedFile.bin转载 2015-11-05 15:09:21 · 436 阅读 · 0 评论 -
git查看某一个檔案的詳細commit record
git log -p filename转载 2016-01-28 13:14:42 · 391 阅读 · 0 评论 -
git 退回到某個版本
git 退回到某個版本git reset --hard +某版號例如git reset --hard a310d9a5faa4e61548fda8e51fa178转载 2016-02-03 13:32:36 · 439 阅读 · 0 评论 -
刪除git tag
刪除tagrepo forall -c git tag -d "stbT020_release_1.03(VAY.0)a1"repo forall -c 'git push mma.sw3.gerrit :refs/tags/stbT020_release_1.03(VAY.0)a1'转载 2016-03-16 14:27:52 · 421 阅读 · 0 评论 -
看到branch name 的提示
#add for gitsource /etc/bash_completion.d/gitexport PS1='\w$(__git_ps1 "(%s)") \$ '轉載https://stackoverflow.com/questions/9717137/displaying-git-branch-name-in-prompt-does-not-work-in-screen转载 2018-02-14 14:46:40 · 2240 阅读 · 1 评论 -
git alias name
Create git alias namegit config --global alias.hint "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short""git hint" will equal "git log --pretty=format:'%h %ad | %s%d [%an]' --graph --d...转载 2018-10-17 15:33:40 · 209 阅读 · 0 评论 -
git tagname 排列照日期
git log --tags --simplify-by-decoration --pretty="format:%ai %d"转载 2018-10-17 15:34:10 · 248 阅读 · 0 评论 -
git commit 出錯 處理
remote: Resolving deltas: 100% (7/7)remote: Counting objects: 11, doneremote: Processing changes: refs: 1, done remote: ERROR: missing Change-Id in commit message footerremote: Suggestion fo...转载 2019-01-18 15:20:20 · 430 阅读 · 0 评论 -
git diff staged
will only show changes to files in the "staged" area.git diff --staged转载 2019-03-07 10:26:58 · 358 阅读 · 0 评论 -
macaddr 自動加 ":" 號
1.use seda=0xAA11BBC1D5F1b=$(echo "$a" | sed 's/^0[xX]//;s/\(..\)/\1:/g;s/:$//')echo "$a --> $b"转载 2015-06-24 10:37:44 · 409 阅读 · 0 评论 -
git 常用指令
1.git clean -d -x -fwill remove untracked files, including directories (-d) and files ignored by git (-x). Replace the -fargument with -n to perform a dry-run or -i for interactive mode and it转载 2015-05-21 15:28:35 · 366 阅读 · 0 评论 -
git use commit times for timestamps
轉載自http://stackoverflow.com/questions/1964470/whats-the-equivalent-of-use-commit-times-for-git If, however you really want to use commit times for timestamps when checking out then try using t转载 2014-06-24 18:53:45 · 620 阅读 · 0 评论 -
git 架設server
轉載自http://git-scm.com/book/zh-tw/%E4%BC%BA%E6%9C%8D%E5%99%A8%E4%B8%8A%E7%9A%84-Git-%E6%9E%B6%E8%A8%AD%E4%BC%BA%E6%9C%8D%E5%99%A8轉載自http://stackoverflow.com/questions/8006393/force-add-despite-the-转载 2014-06-24 15:49:23 · 562 阅读 · 0 评论 -
svn 相關經驗 svn checkout with commit times (keep original timestamp)
svn checkout with commit times (keep original timestamp)svn co --config-option config:miscellany:use-commit-times=yes svnserverip/projectnameex: svn co --config-option config:miscellany:use-转载 2014-06-10 15:05:46 · 846 阅读 · 0 评论 -
git教學
http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/转载 2014-06-09 23:45:31 · 487 阅读 · 0 评论 -
svn 指令
1 命令功能使用格式 checkout检出svn co URL up更新到当前URL的末端svn up switch更新到某一t转载 2013-10-27 23:49:03 · 680 阅读 · 0 评论 -
Subversion 1.7
Subversion 1.7 is included in Ubuntu 12.10 only. For old versions, use backport ppa.sudo apt-add-repository ppa:svn/ppasudo apt-get updatesudo apt-get install subversion转载 2013-12-16 10:46:42 · 531 阅读 · 0 评论 -
git指令
下載git server trunkgit clone git@gitserver:/opt/git/project.git如何將檔案提交(commit)使用 git commit會將 Stage 狀態的檔案做 Commit 動作git commit -m "commit訊息" 可以略過編輯器直接輸入 commit 訊息完成提交。git commit -am "comm转载 2014-06-25 15:37:42 · 376 阅读 · 0 评论 -
如何建一個新的git project server and client心得
在server端首先,創建一個名為 'git' 的用戶$ sudo adduser git現在可以用 --bare 選項運行 git init 來建立一個裸倉庫,這會初始化一個不包含工作目錄的倉庫。$ cd ~ (如果現在打pwd,應該是在/home/git)$ mkdir project.git$ cd project.git$ git --bare i转载 2014-07-03 10:00:09 · 498 阅读 · 0 评论 -
svn add new project
cd newProjectnamesvn import svn://172.23.57.201/home/hybrid-OTT/trunk/newProjectname转载 2014-06-06 11:37:32 · 1325 阅读 · 0 评论 -
svn : how to set the executable bit on a file?
轉載自http://stackoverflow.com/questions/17846551/svn-how-to-set-the-executable-bit-on-a-filesvn propset svn:executable ON filenamefilename:是你要改變為可執行的檔名转载 2014-10-07 16:55:08 · 449 阅读 · 0 评论 -
git 修改過檔案後,如何commit上server
1. 修改檔案內容2. git add -f .3. git status4. git push(真正把修改過得內容,丟上server)=====================================================git log -p # 將所有 log 和修改過得檔案內容列出git log --stat --summary #转载 2014-10-09 17:20:23 · 414 阅读 · 0 评论 -
Git 基礎 - 檢視提交的歷史記錄
轉載自 http://git-scm.com/book/zh-tw/Git-%E5%B7%A5%E5%85%B7-%E9%87%8D%E5%AF%AB%E6%AD%B7%E5%8F%B2转载 2014-10-13 15:07:47 · 359 阅读 · 0 评论 -
git log 應用
轉載自 http://git-scm.com/book/zh-tw/Git-%E5%9F%BA%E7%A4%8E-%E6%AA%A2%E8%A6%96%E6%8F%90%E4%BA%A4%E7%9A%84%E6%AD%B7%E5%8F%B2%E8%A8%98%E9%8C%84转载 2014-10-13 14:57:54 · 324 阅读 · 0 评论 -
git clean reset checkout
轉載自http://stackoverflow.com/questions/673407/how-do-i-clear-my-local-working-directory-in-git To reset a specific file to the last-committed state (to discard uncommitted changes in a specific转载 2014-10-17 14:11:16 · 1163 阅读 · 0 评论 -
git diff指令
轉載自 http://ithelp.ithome.com.tw/question/10135441準備工作目錄-----------我們透過以下指令快速建立一個擁有兩個檔案與兩個版本變更紀錄的 Git 儲存庫與工作目錄:mkdir git-demo cd git-demo git init echo 1 > a.txt e转载 2015-04-30 17:49:12 · 575 阅读 · 0 评论 -
Displaying git branch name in prompt does not work in screen
轉載自http://stackoverflow.com/questions/9717137/displaying-git-branch-name-in-prompt-does-not-work-in-screenhttp://velomatrix.net/2011/01/04/show-the-current-git-branch-in-your-bash-prompt/转载 2015-05-20 17:31:30 · 368 阅读 · 0 评论 -
Git 版本控制系統(3) 還沒 push 前可以做的事
轉載自 http://ihower.tw/blog/archives/2622转载 2014-10-13 15:04:49 · 385 阅读 · 0 评论 -
遞迴把.gitignore加入空的資料夾
find ./* -type d -empty | xargs -i cp .gitignore {}如此便可把空的資料夾加入git管控转载 2014-06-25 09:58:47 · 485 阅读 · 0 评论