2
0

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.

git参考にしたサイトまとめ

Last updated at Posted at 2018-12-04

git ignoreファイルの書き方

gitignore 特定ディレクトリの特定ファイルだけを除外したい時などに役立つ

会社のサーバーをgitで使用する時のurlの指定など

リモートリポジトリは、ベアリポジトリにするべきなのか

ノンベアリポジトリは、作業用でベアリポジトリにpushさせてそのベアリポジトリ(更新履歴しか持たないリポジトリ)から本番用のリポジトリなどをpullさせるように構築させてあげる(git のhookというものを使用する)

git pushしてもリモートリポジトリに反映されない(hooksファイルをいじって自動デプロイ環境を作成する)

サービス時に考えないといけない視点

git のremoteの向き先のurlなどを変更する(git hooksで自動デプロイするように変更にした時に設定)

git pushでremote rejectedと怒られた時にやったことメモ

リポジトリが壊れた時に確認すること

gitでローカルにブランチがなくて引っ張ってきたい時のやり方(一人で複数端末を使用している時も同じ状況になることもある)

gitでコンフリクトした際に参考にしたサイト

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?