LoginSignup
1
3

More than 5 years have passed since last update.

gitについて

Last updated at Posted at 2018-06-04

初期設定

gitを使用(リポジトリをアップ)するには、最初にユーザー名とメールアドレスを設定する必要がある。(基本的にはgithubアカウントのユーザー名とメールアドレス)

git config --global user.name "ユーザー名"
git config --global user.email メールアドレス

--globalオプションを指定すると
その後、全ての操作に対して常にこの情報を使うようになる。

もし、違う名前とE-mailアドレスを特定のプロジェクトで上書きしたいのであれば、そのプロジェクトの中で、--globalオプション無しでこのコマンドを実行する。
最初のGitの構成

--globalで設定した情報の確認は

vim ~/.gitconfig

設定ファイル

  • .gitconfig
    gitの仕様設定を記述する。上記の初期設定以外にも、gitの機能挙動について設定できる。

  • .gitignore
    バージョン管理から外すファイルを設定する。

gitの設定
[Git] .gitignoreの仕様詳解
.gitignoreの存在を我々は見過ごしてはならない。

コマンド

gitコマンドまとめ

ツールなど

tig操作 超簡易版

.gitignore.io - 適切な設定を簡易生成

markdown記述

Basic writing and formatting syntax | GitHub Help
README.mdファイル編集時の参考

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