サンプル集  >  other  >  Git
Git
2025/07/10

Gitを使ってみます。

◆環境
OS Windows 10 Home 22H2 64bit
  1. Gitのインストール
  2. GitHubの登録
  3. Gitの初期設定

Gitのインストール

Gitで検索しページを開きます。


Downloadsをクリックします。


Windowsをクリックします。


Standalone Installer欄のGit for Windows/x64 Setup.をクリックします。

以下のファイルがダウンロードされました。

Git-2.50.1-64-bit.exe

管理者で実行します。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Next」をクリックします。


「Install」をクリックします。


「Finish」をクリックします。

スタートからGitを開きます。


「Git Bash」をクリックします。

git versionコマンドを実行します。


正常にインストールできたようです。

GitHubの登録

githubで検索します。


ページを開きます。


右上の「サインアップ」をクリックします。


「Sign in」をクリックしサインインします。


無事にサインインできました。

Gitの初期設定

Gitの設定をします。

git config --global user.name "github user name"
git config --global user.email hoge@fuge.com
git config --global core.editor vim
git config user.name
git config user.email
git config core.editor
git config --list
cat ~/.gitconfig

ユーザー名、メールアドレス、エディターを設定します。


設定内容を確認します。


設定はgit.configファイルに記載されています。


無事設定できたようです。

▲ PageTop  ■ Home


Copyright (C) 2025 ymlib.com