LoginSignup
0
0

More than 3 years have passed since last update.

Git/GitHubの初期設定について簡潔に触れてみた

Posted at

はじめに

Python/DjangoでWebアプリ作成を行う過程で、
必要不可欠なバージョン管理システムGitについて
今回は、簡潔に触れていきます。

初期設定

初期設定を行います。ターミナルを起動。

公式サイトにてアカウントを作成しておきます

①アカウントのユーザー名を登録
 以下のコマンドを実行します。

$ git config --global user.name "ユーザー名"

②アカウントのメールアドレスを登録
 以下のコマンドを実行します。

$ git config --global user.mail gihub@example.com

③使用したいエディターを登録
 以下のコマンドを実行します。※VSCodeの場合

$ git config --global core.editor "code --wait"

 ""の中は、エディターによって変更します。
 例:Atomであれば、"atom --wait"

④設定内容を確認
 以下のコマンドを実行します。

$ git config --list 

設定が反映されていることを確認できます。
以下のコマンドで設定ファイルを確認することも可能です。

$ cat ~/.gitconfig

まとめ

Git/GitHubの初期設定を確認しました。

Gitの基本的なコマンド操作や、ブランチ・マージ・プルリクエスト等についても、内部の動きまで理解を深めていきたいと思います。

ありがとうございました。

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