Más contenido relacionado
La actualidad más candente (20)
Similar a Git tutorial (20)
Git tutorial
- 4. まずは自己紹介
name : Hiroki Kouchi
age : 26 => 社会人4年目
Twitter : @_hkouchi
(最近変更しました)
work : iOS App Developer
hobby : Development => (iOS, Android, Web)
- 21. init
git init で初期化
.gitというディレクトリが作成される
中身は特に意識する必要はなし
プロジェクトの直下で実行する
初期化後はgitコマンドでよしなに
- 23. git add -A
変更を全てindexに追加する
git commit -m “comment”
引数にコメントがつけれる
なくてもコメントはつけられます
- 24. remote
git remote add origin git://xxxx/hoge.git
サーバーにあるgitリポジトリを登録する
git:/ の場合も https:/ の場合もある
/... /...
originって名前は規則ではない
originは暗黙の了解になってるだけ
(だったはず。。。)
- 27. push
git push origin master
remoteのリポジトリへ変更を送信
他のbranchをpushすることも可能
ex). git push origin dev-kouchi
Notas del editor
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n