0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Xcode】プロジェクトをGitHub に上げる

Last updated at Posted at 2023-04-17

プロジェクトをGitHub に上げる

1,プロジェクトを作成。

2,プロジェクトが開けたら、first commit 前にしたい変更をする。

(プロジェクト作成して最初に記載されている名前や、作成時間の削除など)

3,ターミナルで.DS_Storeファイルを削除する。(いらないファイルなので消したい)

「cd ~ 」でプロジェクトに移動し、以下コマンドを実施

// 現在いるディレクトリの.DS_Storeを削除する方法
find . -name '.DS_Store' -type f -ls -delete
// 念の為に削除できているか確認
ls -a

4,Git と連携

プロジェクトの上バーから「Source Control」を開き、「New Git Repository…」を選択する。
「Create」をする。

5,GitHub に上げる

NavigationArea(左側のエリア)の上部で左から2番目のロゴを選択する。
「Repositories」を選ぶ。
「Remotes」を右クリックし、「New “プロジェクト名” Remote…」を選択する。
上げるGitHubのアカウント等の間違いがなければそのまま「Create」

終わり

0
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?