Skip to content

Commit

Permalink
Update 05-accidental-commit-wrong-branch.md (ksylor#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeder42 authored Feb 27, 2021
1 parent 3efa39f commit 30b4124
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sv/swears/tips/05-accidental-commit-wrong-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ git stash
# flytta till rätt branch
git checkout namnet-av-rätt-branch
git stash pop
git add . # eller lägg till individuella filer
git add .
# eller lägg till individuella filer
git commit -m "ditt meddelande här"
# nu finns dina ändringar på rätt branch
```
Expand All @@ -26,4 +27,4 @@ git cherry-pick master
# ta bort den från master
git checkout master
git reset HEAD~ --hard
```
```

0 comments on commit 30b4124

Please sign in to comment.