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/GitHub勉強会まとめ
Search
kkri3
June 06, 2020
Programming
1
120
Git/GitHub勉強会まとめ
新入社員で集まってオンライン勉強会を行ったのでそのまとめ+αです。
コマンドを確認しクライアントソフトを利用しました!
kkri3
June 06, 2020
Tweet
Share
Other Decks in Programming
See All in Programming
Passkeys for Java Developers
ynojima
2
830
Gleamという選択肢
comamoca
6
670
[初登壇@jAZUG]アプリ開発者が気になるGoogleCloud/Azure+wasm/wasi
asaringo
0
120
事業戦略を理解してソフトウェアを設計する
masuda220
PRO
21
5.8k
2度もゼロから書き直して、やっとブラウザでぬるぬる動くAIに辿り着いた話
tomoino
0
150
Javaに鉄道指向プログラミング (Railway Oriented Pro gramming) のエッセンスを取り入れる/Bringing the Essence of Railway-Oriented Programming to Java
cocet33000
2
520
実践ArchUnit ~実例による検証パターンの紹介~
ogiwarat
2
240
Use Perl as Better Shell Script
karupanerura
0
690
💎 My RubyKaigi Effect in 2025: Top Ruby Companies 🌐
yasulab
PRO
1
130
Julia という言語について (FP in Julia « SIDE: F ») for 関数型まつり2025
antimon2
3
900
JSAI2025 RecSysChallenge2024 優勝報告
unonao
1
440
Cloudflare Realtime と Workers でつくるサーバーレス WebRTC
nekoya3
0
370
Featured
See All Featured
Visualization
eitanlees
146
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Gamification - CAS2011
davidbonilla
81
5.3k
How to Ace a Technical Interview
jacobian
276
23k
The Invisible Side of Design
smashingmag
299
50k
Done Done
chrislema
184
16k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Side Projects
sachag
454
42k
Writing Fast Ruby
sferik
628
61k
How to train your dragon (web standard)
notwaldorf
92
6.1k
Transcript
@_kkri_ Git/GitHub 入門 ~新入社員でオンライン勉強会してきた~ Twitter :
@_kkri_ よく使うコマンド
@_kkri_ init/clone 既存のリポジトリを初期化【init】 $git init 既存のリポジトリをクローン【clone】 $git clone [url] ([dir_name])
@_kkri_ status/add/commit ファイルの状態を確認【status】 $git status (-s(--short)) 全変更をステージに追加【add】 $git add .
ステージをリポジトリへコミット【commit】 $git commit –m “[message]”
@_kkri_ diff add前の変更を確認 $git diff ([file]) add後の変更を確認 $git diff --staged
([file])
@_kkri_ log コミット履歴を表示 $git log (-n [num]) 特定ファイルの履歴 $git log
–p [file]
@_kkri_ rm リポジトリから削除 $git rm --cached [file] リポジトリ&ワークスペースから削除 $git rm
[file] $git rm –r [dir]から削除
@_kkri_ remote add/push リモートリポジトリを設定【remote add】 $git remote add origin [url]
リモートリポジトリへ送信【push】 $git push (-u) origin master $git push (-u) [remote] [branch] -uオプションを付けると次回以降$git pushのみ
@_kkri_ pull (=fetch+merge) リモートリポジトリを反映 $git pull [remote] [branch] $git pull
origin masterは $git pull だけでOK
@_kkri_ branch 新規ブランチを作成 $git branch [branch] ブランチを削除 $git branch -d
[branch] ブランチを一覧表示 $git branch
@_kkri_ checkout/branch ブランチを切り替え【checkout】 $git checkout [branch] ブランチを作成して切り替え【 checkout 】 $git
checkout -b [branch] ブランチを一覧表示【branch】 $git branch
@_kkri_ merge 変更を現在のブランチにマージする $git merge [branch] $git merge [remote/branch]
@_kkri_ alias コマンドの短縮設定 git config --global alias.co ‘checkout’ git config
–global alias.st ‘status‘ git config --global alias.ci ‘commit ’ git config --global alias.di ‘diff’ git config --global alias.br ‘branch’
@_kkri_ ここまでコマンドを 見てきましたが…
@_kkri_ GUI(Gitクライアント) が超便利!
@_kkri_ VSCode 拡張機能 Git Graph
@_kkri_ デスクトップアプリ Git Kraken
@_kkri_ これから学ぶこと • reset • rebase • tag • stash
@_kkri_ 参考 ・公式book https://git-scm.com/book/ja/v2 ・【Git】基本コマンド https://qiita.com/konweb/items/621722f67fdd8f86a017 ・Git Graph https://marketplace.visualstudio.com/items?itemName=mhut chie.git-graph
・Git Kraken https://www.gitkraken.com/