Skip to content

Commit 3e9243a

Browse files
authored
Create git_scenario.md
1 parent aa66c43 commit 3e9243a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Git/git_scenario.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#### Scenario 1
2+
committed a bunch of files and realised that the commit message you entered is actually not clear
3+
>git commit --amend -m “New commit message”
4+
5+
#### Scenario 2
6+
Let’s say that you wanted to commit six files but, by mistake, you end up committing only five files.
7+
<code>
8+
* git add file6
9+
* git commit --amend --no-edit
10+
* --no-edit means that the commit message does not change.
11+
</code>

0 commit comments

Comments
 (0)