このブログは、旧・はてなダイアリー「檜山正幸のキマイラ飼育記 メモ編」(http://d.hatena.ne.jp/m-hiyama-memo/)のデータを移行・保存したものであり、今後(2019年1月以降)更新の予定はありません。

今後の更新は、新しいブログ http://m-hiyama-memo.hatenablog.com/ で行います。

magit操作

手動コマンドラインなら、

cd /path/to/my/repo
git remote add origin https://m_hiyama@bitbucket.org/m_hiyama/git-module-test1.git
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags

M-x magit-init, M-x magit-remote-add はいい。

magitバッファから P -u P は、git push --set-upstream master を実行しようとする。実際には、git.exe push -v --set-upstream origin --all が必要だが、originと--allのmagitからの指定方法が分からない。対話的にoriginを入れても、なぜかmasterになってしまう。

[追記]分かった。P -u P の対話的プロンプトに対して、origin/master と入れるのだ。[/追記]