You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CI-CD/git/git-advanced-commands.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,5 +22,5 @@
22
22
|`git revert HEAD~1`| Create a new commit undoing the last commit's changes. |
23
23
|`git reflog`| List all the git actions that were executed before. Useful to find a lost commit, then you can try to recover it. |
24
24
|`git bisect start`| Useful to find the buggy commit (that possible introduces some bug). After this, you use `git bisect [good|bad]` indicating when the suggested commit is in a `good` or `bad` state. When the issue is found, use `git bisect reset` to reset back to the original state before using the git bisect command.|
25
-
| `git branch --merged | egrep -v "(*|master|dev)" | xargs git branch -d` | Delete already merged branches but `master` and `dev` in this example.
25
+
| ```git branch --merged \| egrep -v "(*\|master\|dev)" \| xargs git branch -d``` | Delete already merged branches but `master` and `dev` in this example.
26
26
|`git clean -df`| Remove untracked files and directories from the working tree. Add `n` to the flags to list all files that would be removed. |
0 commit comments