LoginSignup
1
1

ViでGit操作メモ

Last updated at Posted at 2024-03-20

前提条件

Xcodeを使わずターミナルから直接修正したい場合

メモ:バージョン変更

  1. Githubから資源クローン
  2. ブランチを作成、ブランチに移動
git clone -b 作成したブランチ
git branch
  3. grep -nr "MARKETING_VERSION" ./*
  4. vi [スペース]変更したいファイルのパス

    例)vi ./iOS/AppName.xcodeproj/project.pbxproj
  5. viに移動したら、スラッシュ/検索したい場所 ※大文字注意、スペースいらない
    例)/MARKETING_VERSION
  6. Nで検索結果に飛ぶ
  7. 変更したい箇所にカーソルを合わせてR→変更したい文字を入力(R→2)
  8. 全て変更し終わったら、:wq→Enter
  9. あとは従来通り、diffって変わったことを確認してコミットなどに進む
1
1
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
1
1