0

ローカルリポジトリを編集して、masterブランチにプッシュすると、にもプッシュされるようにしましたgh-pages

私のローカル.git/commitにはこの行が含まれています。

push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master

このリポジトリのクローンを作成した場合.git/commitでも、上記の行が.git/commit

4

1 に答える 1

0

Right out of the box using git, this isn't possible right now. You can't share configuration on pull/push/clone right now (which could sometime be useful I have to admit).

So, the best solution in this case would be to share your repo using tar/zip rather than git clone. This way you can include the .git folder.

Otherwise, you could use and share a bash script to automatically setup git repo as needed.

于 2012-09-29T01:58:45.307 に答える