摘要: 拷貝出來,直接用,commit出現錯誤 缺少changeId出現提示git-dir=${git git-dir}; scp ....總之就是叫你下載一個commit-msg 到.git/hook下所以進入查看,只是個鏈接文件, 從原始.git 文件夾下找到完整的commit-msg 放到目錄下即可還有pre-auto-gc 有什麼用, 自動回收垃圾前的鉤子? 順便拷貝過來了 阅读全文
posted @ 2014-04-09 17:33 xjadss 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 設定 我的分支to track 遠程分支 阅读全文
posted @ 2014-04-08 11:13 xjadss 阅读(233) 评论(0) 推荐(0) 编辑
摘要: checkout前一个branch:git checkout -兩個分支來回切 阅读全文
posted @ 2014-04-04 09:29 xjadss 阅读(140) 评论(0) 推荐(0) 编辑
摘要: select_for_meld:#!/bin/sh quoted=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "%s", $1 }' )echo "$quoted" > $HOME/.meld/nautilus compare_to_meld:#!/bin/sh arg1=$(cat $HOME/.meld/nautilus) arg2=$(echo "$NAUTI 阅读全文
posted @ 2014-04-03 10:25 xjadss 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 无法使用meld来比较binary file,比如apk.git/config 配置[diff] tool=[filepath]/gitmeld.sh[merge] tool=[filepath]/gitmeld.sh[mergetool] prompt=false[difftoll] prompt=falsegitmeld.sh :#!/bin/shmeld $2 $5 阅读全文
posted @ 2014-04-03 10:20 xjadss 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 在.git/config file中每個remote,添加receivepack=git receive-pack --reviewer xxx_xx@xx.com --reviewer ..... 重复也可以添加pushurl,但是只能每个remote 添加是否可以有方法为每个branch 添加一个pushurl, 这样push到gerrit , 就不用敲那么长一段 branch name 直接git push就可以当前前提最好设置 push= current ,只push 当前分支 阅读全文
posted @ 2014-04-03 10:09 xjadss 阅读(1554) 评论(0) 推荐(0) 编辑
摘要: 主要是用于push code 到gerrit,google定义 必须要git push [Remote] HEAD:refs/for/branchnamegit branch -vv两个vandroid source 下push code,对于多个remote,多个分支,查看当前分支所在remote,以及远程分支名每次code 传一次后,其他分支都要cherry-pick,有没有简单的方法? 阅读全文
posted @ 2014-04-03 10:00 xjadss 阅读(1684) 评论(2) 推荐(0) 编辑
摘要: git log --decorate --oneline單行,并且显示tag看到有人用git log --dec --oneline缩写居然也行 阅读全文
posted @ 2014-04-03 09:55 xjadss 阅读(390) 评论(0) 推荐(0) 编辑
摘要: git cherry-pick binary file , conflict,无法diff 无法merge,confilict 出现后使用 git checkout --theirs [filepath] , 继续 git add , git commit,会自动带上cherry-pick message又查到一個git cherry-pick --strategy=recursive -X theirs [commitId]也使用了一下git cherry-pick -X theirs [commitId]不知道這兩個有沒有差別,有人知道嗎? 阅读全文
posted @ 2014-04-02 21:26 xjadss 阅读(1155) 评论(0) 推荐(0) 编辑