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入門
Search
Kyohei Mizumoto
October 10, 2018
Technology
0
66
Git入門
Kyohei Mizumoto
October 10, 2018
Tweet
Share
More Decks by Kyohei Mizumoto
See All by Kyohei Mizumoto
サイバーセキュリティの最新動向:脅威と対策
kyohmizu
1
220
コンテナセキュリティの基本と脅威への対策
kyohmizu
4
1.5k
安全な Kubernetes 環境を目指して
kyohmizu
4
1.1k
Unlocking Cloud Native Security
kyohmizu
5
1.3k
コンテナ × セキュリティ × AWS
kyohmizu
10
3.8k
コンテナセキュリティ
kyohmizu
10
4.2k
コンテナイメージのマルウェア検出とその実用性について
kyohmizu
4
3.4k
Play with 🐐 in Kubernetes
kyohmizu
1
1.3k
Security Command Center × PagerDuty 自動アラート通知の取り組み
kyohmizu
0
620
Other Decks in Technology
See All in Technology
転生CISOサバイバル・ガイド / CISO Career Transition Survival Guide
kanny
2
390
Ask! NIKKEI RAG検索技術の深層
hotchpotch
13
2.8k
個人開発から公式機能へ: PlaywrightとRailsをつなげた3年の軌跡
yusukeiwaki
10
2.7k
【Developers Summit 2025】プロダクトエンジニアから学ぶ、 ユーザーにより高い価値を届ける技術
niwatakeru
2
890
The 5 Obstacles to High-Performing Teams
mdalmijn
0
270
滅・サービスクラス🔥 / Destruction Service Class
sinsoku
6
1.5k
AWSでRAGを実現する上で感じた3つの大事なこと
ymae
3
1k
7日間でハッキングをはじめる本をはじめてみませんか?_ITエンジニア本大賞2025
nomizone
2
1.4k
SCSAから学ぶセキュリティ管理
masakamayama
0
140
Postmanを使いこなす!2025年ぜひとも押さえておきたいPostmanの10の機能
nagix
2
120
アジャイル開発とスクラム
araihara
0
160
オブザーバビリティの観点でみるAWS / AWS from observability perspective
ymotongpoo
7
1k
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
Unsuck your backbone
ammeep
669
57k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
31
2.1k
A Tale of Four Properties
chriscoyier
158
23k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Why Our Code Smells
bkeepers
PRO
335
57k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Optimizing for Happiness
mojombo
376
70k
Making Projects Easy
brettharned
116
6k
Embracing the Ebb and Flow
colly
84
4.6k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The World Runs on Bad Software
bkeepers
PRO
67
11k
Transcript
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 1/30 Git⼊⾨ 1 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 2/30 対象者 git未経験者 基本的なコマンド操作可能 2 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 3/30 ⽬標 基本的なgitコマンド操作ができるようになる githubの操作ができるようになる 3 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 4/30 Gitとは 変更履歴を記録・追跡するためのバージョン管理シス テム ローカル環境で操作 差分ではなくスナップショット 4
/ 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 5/30 リポジトリ ファイルやディレクトリの状態を記録する場所。リモー トリポジトリとローカルリポジトリがある 5 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 6/30 ブランチ 履歴の流れを分岐して記録していくためのもの 6 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 7/30 インストール 公式サイト(https://git-scm.com)よりダウンロード 7 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 8/30 インストール インストール完了後、gitコマンドが使⽤可能になる # バージョン確認 $ git
version git version 2.19.1.windows.1 # ヘルプ表⽰ $ git --help 8 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 9/30 gitコマンド ローカル編 9 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 10/30 覚えるべきgitコマンド git init git add git
commit 10 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 11/30 空のgitリポジトリを作成 $ mkdir sample $ cd
sample $ git init git init 11 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 12/30 git add ファイルをバージョン管理対象として追加する $ echo sample
> sample.txt $ git add sample.txt 全ファイルを追加したい場合 $ git add . 12 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 13/30 git commit 変更内容をリポジトリに追加する $ git commit
-m "comment" 13 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 14/30 githubの利⽤ 14 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 15/30 アカウント作成 https://github.com/ 15 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 16/30 リポジトリの作成 https://github.com/new 16 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 17/30 リポジトリの作成 作成したリポジトリのパスをコピー 17 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 18/30 gitコマンド リモート編 18 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 19/30 覚えるべきgitコマンド git remote git push git
pull git clone 19 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 20/30 git remote リモートリポジトリの操作を⾏う # リモートリポジトリを追加 $
git remote add origin [リポジトリのパス] # 登録されているリモートリポジトリの確認 $ git remote -v origin https://github.com/Kyohei-M/sample.git (fetch) origin https://github.com/Kyohei-M/sample.git (push) 20 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 21/30 git push リモートリポジトリにコミットをプッシュする $ git push
origin master 21 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 22/30 git pull リモートリポジトリと同期する $ git pull
origin master 22 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 23/30 git clone リポジトリをローカルに複製する $ git clone
[リモートリポジトリのパス] 23 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 24/30 注意点 24 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 25/30 githubとsshキー githubの操作には、ローカルマシンのsshキーを設定する 必要がある 25 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 26/30 sshキーの作成 https://confluence.atlassian.com/bitbucketserver/creating-ssh-keys- 776639788.html $ ssh-keygen -t
rsa -C "
[email protected]
" 作成される".ssh\id_rsa.pub"の中⾝をgithubにコピー 26 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 27/30 おまけ 27 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 28/30 Sourcetree GitのGUIツール。使いやすいらしい(使ったことない) https://www.sourcetreeapp.com/ 28 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 29/30 皆さん、Gitを使いましょう︕ 29 / 30
2019/3/28 Git⼊⾨ 127.0.0.1:5500/index.html#8 30/30 参考 公式サイト https://git-scm.com/ Wikipedia https://ja.wikipedia.org/wiki/Git サルでもわかるGit⼊⾨
https://backlog.com/ja/git-tutorial/ 30 / 30