Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git を GUI で使う話
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
tsuda.a
May 20, 2026
Programming
69
0
Share
Git を GUI で 使う話
Tortoise Git の入門です
tsuda.a
May 20, 2026
More Decks by tsuda.a
See All by tsuda.a
マジカルインクリメントと指数表記
tsudaahr
0
240
バックアップしていますか?
tsudaahr
0
140
RDB以前のファイル設計の話でもしようか(ぇ
tsudaahr
0
150
NPUわからん
tsudaahr
0
210
計算量オーダーの話
tsudaahr
1
450
クラウド初学者が抱える不安について
tsudaahr
0
320
キューとは何か
tsudaahr
0
280
等幅は死んだ(ぇ
tsudaahr
0
130
いくら眺めてもエラーの理由がわからないコードについて
tsudaahr
0
220
Other Decks in Programming
See All in Programming
inferと仲良くなる10分間
ryokatsuse
0
120
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
0
250
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
190
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
1
160
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
970
書き換えて学ぶTemporal #fukts
pirosikick
2
380
tsserverとは何だったのか_これからどうなるのか
nowaki28
0
230
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
1
220
Hive Metastoreを通して学ぶIceberg REST Catalog ― 仕様から実装まで
okumin
0
210
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
300
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
210
AI時代になぜ書くのか
mutsumix
0
430
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Optimizing for Happiness
mojombo
378
71k
How to Ace a Technical Interview
jacobian
281
24k
Technical Leadership for Architectural Decision Making
baasie
3
370
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3.1k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
230
Color Theory Basics | Prateek | Gurzu
gurzu
0
310
Become a Pro
speakerdeck
PRO
31
5.9k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Transcript
Git を GUI で 使う話 @tsuda_ahr (改訂1版)
GUI で Git を使う方法 • Visual Studio Code • ソースコード書くならこれが鉄板。
• Sourcetree • Windows 版 / Mac 版両方あり。 • TortoiseGit • Windows 版のみ。Explorer 統合。
今回は 亀 Git を紹介します • 理由: Explorer 統合なので、なんとなく扱いやすい。 • Windows
専用になってしまいますが・・・
まず準備
準備1) Git for Windows のインストール • https://git-scm.com/install/windows
準備2) Tortoise Git のインストール • https://tortoisegit.org/download/
準備3) Language Pack のインストール • https://tortoisegit.org/download/
準備4) 亀Git の設定 →日本語化 • デスクトップで右クリックしてポップアップメニューからたどります。
tortoisegit を使用しない場合(コマンドプロンプト) 準備5) 亀Git の設定 →Git (個人情報の設定) git config --global
user.name "username" git config --global user.email "
[email protected]
"
準備6) 亀Git の設定 →Win11 コンテキストメニュー • 「名前を変更」「ここにリポジトリを作成」「追加」にチェックします。
参考1) 用語解説 • リポジトリ • 今までの変更がすべて記録されたデータベース • ワークツリー • 作業中のファイルを展開(checkout)しているフォルダ
参考2) Git のおおまかな構造 .git リモート リポジトリ (履歴データベース) ワークツリー ローカル リポジトリ
(履歴データベース) clone commit push add .git ワークツリー ローカル リポジトリ (履歴データベース) clone commit push add 編集/変更 編集/変更
早速使ってみる
今回の想定環境 .git リモート リポジトリ (履歴データベース) C:¥Work ローカル リポジトリ (履歴データベース) clone
commit push add 編集/変更 ファイルサーバー (共用フォルダ) 作業PC ¥¥127.0.0.1¥nas¥ または C:¥repos¥ (*1) (*1) 127.0.0.1 の部分は、共有フォルダのコンピューター名または IP アドレスにしてください。 共有フォルダを使用せず作業 PC 内で試す場合は、C:¥repos などのフォルダを作成してください。
tortoisegit を使用しない場合(コマンドプロンプト) 1) リモートリポジトリの作成 • リポジトリフォルダ(¥¥127.0.0.1¥nas¥repos または C:¥repos)に、プロジェ クト名(今回は sample)の空のフォルダを作成して「ここにリポジトリを作成」
を選択する。 • Bare を生成、にチェックする。 pushd ¥¥127.0.0.1¥nas cd Z:¥repos¥sample git init --bare
tortoisegit を使用しない場合(コマンドプロンプト) 2) クローン • クローン先フォルダ(C:¥work)を作成し、右クリックして「クローン」を選択する。 cd C:¥work¥ git clone
Z:¥repos¥sample
2) クローンその2 • リポジトリと同じ名のフォルダ(C:¥work¥sample)ができて、さらにその中を 開くと .git フォルダができていれば OK • .git
があるフォルダがワークツリーのルート。
注意 • 一人で使うだけなら、リモートリポジトリを作る必要はなく、ローカルリポジト リだけで OK です。 • その場合は、 ワークツリーを作りたいフォルダ上(C:¥work¥sample)で、「ここ にリポジトリを作成」を選択後、Bare
にチェックせずに作成すれば OK です。 • .git フォルダが作成されていれば OK です。 (不可視フォルダなので設定によっては見えないかもしれませんが・・・) • クローンも必要ありません。
tortoisegit を使用しない場合(コマンドプロンプト) 3) 追加 • ファイルを作成後、右クリックして「追加」を選択する。 git add test.txt
tortoisegit を使用しない場合(コマンドプロンプト) 4) コミット • 作業フォルダでコミットを選択する。 git commit –m 'commit-message'
5) 修正 • 変化があるとアイコンが変わる。 変更前 変更後
tortoisegit を使用しない場合(コマンドプロンプト) 6) 差分 • ファイルを選択し、差分を選択する。 git diff test.txt
6) 差分その2
tortoisegit を使用しない場合(コマンドプロンプト) 7) 履歴(ログ)の確認 git log
tortoisegit を使用しない場合(コマンドプロンプト) 8) プッシュ git push
8) プッシュ (ログを確認)
今日のところはここまで • 質問あります?