回答編集履歴

3

コメントに補足

2023/01/02 09:11

投稿

jhashimoto
jhashimoto

スコア838

test CHANGED
@@ -8,12 +8,12 @@
8
8
  # developから作業Aブランチを切る
9
9
  git checkout -b work-a develop
10
10
 
11
- # 職場での作業をコミット
11
+ # 職場での作業を作業Aブランチにコミット
12
12
  git commit -m "作業A"
13
13
 
14
14
  # pushとpullは省略
15
15
 
16
- # 自宅での作業をコミット
16
+ # 自宅での作業を作業Aブランチにコミット
17
17
  git commit -m "作業A(続き)"
18
18
 
19
19
  git switch develop

2

リンクを追加

2023/01/02 09:04

投稿

jhashimoto
jhashimoto

スコア838

test CHANGED
@@ -1,4 +1,6 @@
1
1
  `git merge --squash`を利用すればいいのでは。
2
+
3
+ [7. merge --squash|サル先生のGit入門【プロジェクト管理ツールBacklog】](https://backlog.com/ja/git-tutorial/stepup/34/)
2
4
 
3
5
  ブランチ名は質問者さんの環境に合わせて読み替えてください。
4
6
 

1

コメントを追記

2023/01/02 09:03

投稿

jhashimoto
jhashimoto

スコア838

test CHANGED
@@ -9,6 +9,8 @@
9
9
  # 職場での作業をコミット
10
10
  git commit -m "作業A"
11
11
 
12
+ # pushとpullは省略
13
+
12
14
  # 自宅での作業をコミット
13
15
  git commit -m "作業A(続き)"
14
16
 
@@ -19,5 +21,7 @@
19
21
 
20
22
  # マージした修正をdevelopにコミット
21
23
  git commit -m "作業A"
24
+
25
+ # developのpushは省略
22
26
  ```
23
27