有點懶
總而言之 建議不要使用在已經 PUSH 出去的分支上
最好是獨立開一個分支或者最近沒PUSH過
因為REBASE之後似乎會改變分支的紀錄
這樣的話 可能會產生某些衝突
2011-06-14
2011-06-13
[git] git-notes 同步到遠端的小技巧
參考 http://progit.org/2010/08/25/notes.html
以下設定據說可隨著 PUSH , FETCH 來同時做更新 notes 的動作(感覺不出作用)
以下為簡化打包實作 git notes push 的概念(自做的 並且實測過 確實可行)
可惜的是目前仍然不知道如何同步 github 網頁上 commit notes 的方法
變成只能由 git 去做 notes
而在 github 上做的 notes 則必須要在網頁上才能查閱
以下設定據說可隨著 PUSH , FETCH 來同時做更新 notes 的動作(感覺不出作用)
.git/config
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/notes/*:refs/notes/*
push = +refs/notes/*:refs/notes/*
以下為簡化打包實作 git notes push 的概念(自做的 並且實測過 確實可行)
msysgit\local\bin\git-notes-push
#!/bin/sh當 notes 成功 push 遠端 github 後可在 github 上看到 notes 在黃色框內
echo u can use git notes-push or git-notes-push
echo push notes now.......
git push origin refs/notes/*
可惜的是目前仍然不知道如何同步 github 網頁上 commit notes 的方法
變成只能由 git 去做 notes
而在 github 上做的 notes 則必須要在網頁上才能查閱
訂閱:
文章 (Atom)
