ローカルリポジトリを編集して、master
ブランチにプッシュすると、にもプッシュされるようにしましたgh-pages
。
私のローカル.git/commit
にはこの行が含まれています。
push = +refs/heads/master:refs/heads/gh-pages
push = +refs/heads/master:refs/heads/master
このリポジトリのクローンを作成した場合.git/commit
でも、上記の行が.git/commit
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.