0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

iPhoneでObsidian→git pushのフローを確立する

0
Last updated at Posted at 2026-02-27

概要

強いエンジニアのなり方を読んでこれから日報を書いて内省を実施しようと思い立ち、それならiPhoneでいつでもどこでも書けるかつ、gitでバージョン管理できたら嬉しいなということでObsidian→git pushのフローができないか調査した結果を記載します。

結論

できる!
以下に手順を載せます。

手順

Obsidianアプリのインストール

  1. AppストアからObsidian-Connected Notesをインストール

gitリポジトリの作成

  1. 日報用のprivateリポジトリを作成

PATの取得

  1. https://github.com/settings/personal-access-tokens/new にアクセス
  2. 以下のように入力
項目 入力内容
Token name 適当に入力
Expiration No expiration
Repository access ・Only select repositories
・日報用のリポジトリを選択
Permissions ・Contents
・Read and write

Obsidianの設定

  1. Create new vault
  2. Vault nameは適当に入力
  3. 左上のサイドメニューアイコンを押下
  4. 左上の設定アイコンを押下
  5. Generalを押下し、Languageを日本語に変更しRelaunch
  6. 再度設定アイコンを謳歌し、オプションの中から「コミュニティプラグイン」を押下
  7. 下にスクロールし「コミュニティプラグインの有効化」ボタンを押下
  8. コミュニティプラグインの「閲覧」ボタンを押下
  9. 検索欄に「git」と入力し、「Git」プラグインを選択、インストールボタンを押下
  10. インストール後、有効化ボタンを押下11. オプションボタンを押下し、以下の項目を入力
項目 入力内容
Username on your git server.E.g.your username on GitHub GitHubのユーザー名
Password/Personal access token 作成したPATを入力
Author name for commit コミット時のユーザー名
Author email for commit コミット時のメールアドレス

Obsidianの操作

git clone

  1. ハンバーガーメニューを押下
  2. 「コマンドパレットを開く」を押下
  3. 「Git: Clone an existing remote repo」コマンドを選択
  4. Enter remote URL欄にリポジトリのHTTPS git URLを入力しdone
  5. Enter directory for clone, It needs to be...欄が出てきたら、Vault rootを押下
  6. Dose your remote repo contain a .obsidian...欄が出てきたら、リポジトリに.obsidianディレクトリをpush済みであればYESを選択
  7. YESを選択すると、iPhone側の設定を削除してリポジトリの設定で上書きするか、cloneを中止するかの選択肢が出るので、上書きで問題なければ「DELETE ALL YOUR LOCAL CONFIG AND PLUGINS」を押下
  8. Specify depth of clone. Leave empty for fullはそのままdone

git commit

  1. ハンバーガーメニューを押下
  2. 「コマンドパレットを開く」を押下
  3. 「Git: Commit」を押下

git push

  1. ハンバーガーメニューを押下
  2. 「コマンドパレットを開く」を押下
  3. 「Git: Push」を押下

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?