#author("2021-10-01T17:32:35+09:00","default:ichinomoto","ichinomoto")
#author("2022-07-07T11:53:24+09:00","default:ichinomoto","ichinomoto")
[[tmp]]

*git [#t97917a6]
**gitignore [#kc515c17]
***ユーザーのグローバル設定 [#r42e50f3]
 ~/.gitconfig

***中身 [#r5b1a74e]
 .DS_store
とか

***editorをvimにする [#h27bbaf6]
 git config --global core.editor 'vim -c "set fenc=utf-8"'

**config [#lf3a4d8c]
ファイルモード変更を無視
 git config core.filemode false

**submodule [#tdd89ae7]
***submoduleで必要なバージョンのみ取得する [#p20a42a9]
.gitmodulesに以下を追加
 git config -f .gitmodules submodule.<name>.shallow true
[[https://stackoverflow.com/questions/30129920/git-submodule-without-extra-weight]]

***clone後にsubmoduleをとってくる [#l7662a97]
 git submodule update --init --recursive

**rebase [#j879a981]
githubからforkしてる場合などで、別サイトのデータでrebaseしたい場合
 git pull --rebase /path/to/other

**tag [#xc9e4374]
リモートに有るtagを拾ってくる場合
 git pull --tags

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS