0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git マスターとのマージ そしてpush

Posted at

作業中ブランチにて

git stash (必要に応じて)
git checkout master
git pull
git checkout [ブランチ名]
git merge master

コンフリクトあって解消したあとに

git add [コンフリクトしたファイル]
git stash pop (最初のgit stashをした場合)
git commit
git push origin [ブランチ名]

masterをチェックアウトして

git checkout master
git merge --squash [ブランチ名]

ブランチでの変更を取り込んだ後に

git commit

ログに残したいメッセージ以外を削除してコミット

git push origin master

ブランチを削除

git push --delete origin [ブランチ名]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?