Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
git勉強会(ブランチを操作しよう)
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
EngineerCafe
January 13, 2024
390
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
git勉強会(ブランチを操作しよう)
EngineerCafe
January 13, 2024
More Decks by EngineerCafe
See All by EngineerCafe
台湾デジタルフェス2026参加報告
engineercafe
0
22
Hacktivation2025_イントロダクション_ブロックチェーンことはじめ
engineercafe
0
330
エンジニアカフェ台湾ツアー2025
engineercafe
0
170
台湾視察報告レポート_2024
engineercafe
1
190
インド・バンガロール視察報告会
engineercafe
0
180
イベントレポート_Hacktivation 続:生成AI時代におけるブロックチェーンの可能性
engineercafe
0
150
Docker はじめの一歩 #1 Dockerコンテナを動かしてみよう
engineercafe
0
120
git勉強会 (基本的なコマンドを覚えよう)
engineercafe
0
200
エンジニアのための論文ゆる輪読会 #1【 #ゆるりん 】
engineercafe
0
200
Featured
See All Featured
Chasing Engaging Ingredients in Design
codingconduct
0
310
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
200
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Designing for Performance
lara
611
70k
Building Adaptive Systems
keathley
44
3.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
368
27k
Tell your own story through comics
letsgokoyo
1
1.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
800
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
670
Transcript
git勉強会 (ブランチを操作しよう) 2024年1月13日(土)14時~ 渕上 恵士朗
自己紹介 ・名前:渕上 恵士朗(ふちがみ けいしろう) ・出身:福岡大学商学部 ・仕事:某銀行でアプリ開発(バックエンド) エンジニアカフェスタッフとしてたまに勤務 ・技術:vb.net、SQLServer、IIS(windowsアプリ) 最近kotlin(spring boot)でAPI開発 ・業界:ホテル基幹システム、販売管理システム、 個人向けバンキングアプリ
イベントの目的 ・gitの初歩から実務的な運用、コマンドまで理解を深める (ステップ別に複数回のイベント実施を企画しています!!) ・よりよいgitの運用方法を皆さんで議論したい ・主催者が転職先でgitを利用するので、使い方を思い出したい
何となくのカリキュラム 1回目:gitをインストールしよう(開催済) 2回目:基本的なコマンドを覚えよう(開催済) 3回目:ブランチを操作しよう(本日開催) 4回目:トラブルシューティングについて考えよう
今回の目標 ・どれだけbranchがあるか、どのブランチを使用しているか確認 ・ブランチの作成(リモート側、クライアント側) ・ブランチの切り替え(checkout、switch) ・ブランチのマージ ・競合が発生した場合の対処(時間あれば) ・commitをまとめる(時間あれば)
ブランチとは? ・大元のコードに影響を与えないように分岐させた枝を作り、そちらで作業を行い ます。 https://www.sejuku.net/blog/71071 ・ブランチを活用することで、チーム開発でのデグレなどを防ぎます。 ・ブランチの運用フローイメージ https://tech.nri-net.com/entry/git_module_management_
git branch ・ブランチがどれだけあるのか、自分がどのブランチにいるのかを確認します。 ・git branch -r でリモートの状態も確認できます。
git checkout <ブランチ名> ・ブランチを切り替えます。
リモートのブランチを反映させる ・git hubでブランチを新規作成します。 ・git pullします。 ・git checkout <ブランチ名>でブランチを切り替えます。
ローカルのブランチを反映させる ・ブランチを作る元のブランチに切り替えます。(develop) ・git branch <ブランチ名>でブランチを作成します。 ・git push -u origin <ブランチ名>でリモートに反映させます。
https://www.sejuku.net/blog/71612
featureブランチで作業する ・git checkout でブランチを切り替えて作業。pushまで行います。 ・featureブランチにのみ変更が反映されていることを確認します。
マージする(プルリクエスト) ・git hubでプルリクエストを作成し、マージを行います。 ・マージが完了したら不要なブランチは削除します。
マージする(コマンド) ・git pullで最新の状態を取得します。 ・マージ先ブランチでgit merge<取り込みたいブランチ名>