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

Windowsで一番お手軽なGitHub環境構築メモ

0
Last updated at Posted at 2026-07-07

備忘録です

GitHubでリモートリポジトリを作っておく

GitHubのアカウントを作ります。

GitHubのWEBの画面で、リポジトリを作ります。

リポジトリのURLを控えておきます

GitHubのユーザー名:username
リポジトリ名 :sample01
だと

https://github.com/username/sample01.git

この様な感じになります。

ここまではGitHubのWEB画面で作業です、ここからは自分のPCで作業です。

VS Codeで認証

VS CodeでGitHubアカウントにサインインしておきます。
SSH認証もよく使われますが、VS Codeからサインインする方法が一番 お手軽 です。

Gitのインストール

Git For Windows をインストールしておきます

git --version

で、バージョンを確認できます。

Git用のディレクトリを作る

mkdir git
cd git

作ったディレクトリをGitの管理下にする

git init

GitHubのリモートリポジトリを登録する。

git remote add origin https://github.com/username/sample01.git

git branch -M main

登録するファイルを作ります。

echo "Hello World" > test.txt

ここから先の手順はこちらの記事で解説しています。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?