We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fefc3e6 commit 24cfaf9Copy full SHA for 24cfaf9
README.md
@@ -238,4 +238,17 @@ git rm <file-name>
238
git log #check the commit hash and parent id
239
# revert working tree to commit-hash on parent branch 1
240
git revert <commit-hash> -m 1
241
+
242
+# move commits to another existing branch
243
+git checkout existingbranch
244
+git merge master
245
+git checkout master
246
+git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.
247
248
249
+# move commits to another new branch
250
+git branch newbranch # Create a new branch, saving the desired commits
251
+git reset --hard HEAD~3 # Move master back by 3 commits or put a commit hash
252
+git checkout newbranch # Go to the new branch that still has the desired commits
253
254
```
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments