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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kyohei Mizumoto
October 10, 2018
Technology
84
0
Share
Git入門
Kyohei Mizumoto
October 10, 2018
More Decks by Kyohei Mizumoto
See All by Kyohei Mizumoto
最新の脅威動向から考える、コンテナサプライチェーンのリスクと対策
kyohmizu
0
8
コンテナセキュリティの最新事情 ~ 2026年版 ~
kyohmizu
9
3.6k
Black Hat USA 2025 Recap ~ クラウドセキュリティ編 ~
kyohmizu
0
910
CTFのためのKubernetes入門
kyohmizu
2
1.1k
クラウドネイティブ環境の脅威モデリング
kyohmizu
3
760
コンテナサプライチェーンセキュリティ
kyohmizu
2
470
サイバーセキュリティの最新動向:脅威と対策
kyohmizu
1
410
コンテナセキュリティの基本と脅威への対策
kyohmizu
4
2.1k
安全な Kubernetes 環境を目指して
kyohmizu
4
1.3k
Other Decks in Technology
See All in Technology
GitHub Copilotを極める会 - 開発者のための活用術
findy_eventslides
6
4k
AIエージェントを構築して感じた、AI時代のCDKとの向き合い方
smt7174
1
160
ルールルルルル私的函館観光ガイド── 函館の街はイクラでも楽しめる!
nomuson
0
110
AI環境整備はどのくらい開発生産性を変えうるか? #AI駆動開発 #AI自走環境
ucchi0909
0
120
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
5
14k
システムは「動く」だけでは 足りない - 非機能要件・分散システム・トレードオフの基礎
nwiizo
25
8.1k
デシリアライゼーションを理解する / Inside Deserialization
tomzoh
0
240
ZOZOTOWNリプレイスでのSkills導入までの流れとこれから
zozotech
PRO
4
3.3k
NOSTR, réseau social et espace de liberté décentralisé
rlifchitz
0
150
新規サービス開発におけるReact Nativeのリアル〜技術選定の裏側と実践的OSS活用〜
grandbig
2
180
解剖"React Native"
hacusk
0
120
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
650
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
680
How to Ace a Technical Interview
jacobian
281
24k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
160
Into the Great Unknown - MozCon
thekraken
40
2.3k
Designing for Performance
lara
611
70k
Technical Leadership for Architectural Decision Making
baasie
3
320
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Exploring anti-patterns in Rails
aemeredith
3
310
Building the Perfect Custom Keyboard
takai
2
720
KATA
mclloyd
PRO
35
15k
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