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
53
Git入門
Kyohei Mizumoto
October 10, 2018
Tweet
Share
More Decks by Kyohei Mizumoto
See All by Kyohei Mizumoto
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
650
安全な Kubernetes 環境を目指して
kyohmizu
4
660
Unlocking Cloud Native Security
kyohmizu
5
880
コンテナ × セキュリティ × AWS
kyohmizu
10
3.2k
コンテナセキュリティ
kyohmizu
10
3.8k
コンテナイメージのマルウェア検出とその実用性について
kyohmizu
4
2.1k
Play with 🐐 in Kubernetes
kyohmizu
1
1.1k
Security Command Center × PagerDuty 自動アラート通知の取り組み
kyohmizu
0
450
サイバー攻撃から Kubernetes クラスタを守るための効果的なセキュリティ対策
kyohmizu
13
3.2k
Other Decks in Technology
See All in Technology
「手動オペレーションに定評がある」と言われた私が心がけていること / phpcon_odawara2024
blue_goheimochi
1
310
入社後初めてのタスクでk8sアップグレードした話.pdf
kkato1
0
370
アプリがつくるNOT A HOTELブランド
hokuts
0
450
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
280
Next'24 事例セッションの紹介とクラウド資格を活用したキャリア形成について語りMuscle
yasumuusan
0
220
疲弊しない!AWSセキュリティ統制の考え方 #devio_osakaday1
masahirokawahara
6
5.8k
"好き"との生活/Regularly update profile with GitHub Actions
judeeeee
0
140
Databricks:『生成AI World Cup』のご案内
databricksjapan
1
120
Four keys改善の取り組み事例紹介
sansantech
PRO
2
230
HEXA OSINT CTF V3 作戦会議
meow_noisy
0
110
Databricksを活用してDELISH KITCHENのレシピレコメンドを開発した話
furu8
0
240
2024-04-06 AMeDAS to Lagoon SORACOM UG 2024-04-06
anysonica
0
120
Featured
See All Featured
Scaling GitHub
holman
457
140k
How GitHub (no longer) Works
holman
304
140k
Happy Clients
brianwarren
91
6.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
Statistics for Hackers
jakevdp
789
220k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
1
3.4k
KATA
mclloyd
14
12k
Large-scale JavaScript Application Architecture
addyosmani
503
110k
Raft: Consensus for Rubyists
vanstee
131
6.2k
Imperfection Machines: The Place of Print at Facebook
scottboms
258
12k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
Optimizing for Happiness
mojombo
369
69k
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