Skip to content

Instantly share code, notes, and snippets.

@takashi1975
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save takashi1975/ce6b92f0eb3c1bcde126 to your computer and use it in GitHub Desktop.

Select an option

Save takashi1975/ce6b92f0eb3c1bcde126 to your computer and use it in GitHub Desktop.
Gist 備忘録 〜 何度も...何度でも忘れる自分へ 〜
XCode プロジェクトファイル(*.xcodeproj)があるフォルダに 以下の .gitignore ファイルを置くといい。
(個々のユーザー設定の情報がコミットされない)
[.gitignore]
xcuserdata/
project.xcworkspace/
■ひたすらメモするだけのブログ
http://www.yaunix.com/2012/09/11/git%E3%81%AE%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%82%92%E7%A7%BB%E5%8B%95%E3%81%95%E3%81%9B%E3%82%8B%E6%96%B9%E6%B3%95/
# 引っ越し元のリポジトリをクローン
$ git clone git@bitbucket.org:xxx/projectA.git projectA
# 現在のリモートリポジトリを確認
$ git remote -v
origin git@origin.com:projectA.git (fetch)
origin git@origin.com:projectA.git (push)
# リモートリポジトリを新しいリポジトリに変更
$ git remote set-url origin git@bitbucket.org:xxx/projectB.git
# 変更されたことを確認
$ git remote -v
origin git@origin.com:projectB.git (fetch)
origin git@origin.com:projectB.git (push)
...毎回忘れる... orz
とてもわかりやすく実例を挙げてくれていて、
毎回分かったつもりになっているのに忘れる無能な自分... orz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment