3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

xcodeでlocal gitを作り忘れた時のメモ

Posted at

xcodeでlocal gitを作り忘れた時のメモ

たまに忘れるので書いとく

ターミナルで.xcodeprojの拡張子のあるiOSプログラミングのフォルダーまで移動する
以下のコマンドを実行する

git init

以下のコマンドで追加するファイルを確認

git status

ファイル追加

git add .

コメント付きでコミット

git commit -m "commit"

最後にXcodeを再起動すればローカルgitが出来てるはずなのであとはいつも通り
githubにコミットする手順を踏めばコミットできるはず

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?