Skip to content

Commit f996d2a

Browse files
authored
Add Signing Commits method
1 parent fdadb66 commit f996d2a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ This Repository is a guide to all the git commands you need to use in case any o
77
* [Branches :deciduous_tree:](#branches-deciduous_tree)
88
* [Update forked Repository with original Repository :hourglass:](#update-forked-repository-with-original-repository--hourglass)
99
* [Dev branch is X commits behind and Y commits ahead of master](#your-dev-branch-is-x-commits-behind-and-y-commits-ahead-of-master-fix)
10+
* [Reverting Commits :sunglasses:](#reverting-commits-sunglasses)
1011
* [Short hands](#short-hands)
1112
* [GitHub CLI commands](#github--cli-commands)
12-
* [Reverting Commits :sunglasses:](#reverting-commits-sunglasses)
13+
* [Signing Commits](#signing-commits)
1314

1415

1516
## Basic Commands :v:
@@ -338,3 +339,13 @@ Create a shortcut for a gh command.
338339
```
339340
340341
**[⬆ Back to Index](#index-books)**
342+
343+
## Signing Commits
344+
These steps are to be followed when you want to sign your current commit.
345+
```sh
346+
git commit --ammend --signoff
347+
for signing the current commit
348+
git push -f
349+
force pushes the changes to the current branch.
350+
```
351+
**[⬆ Back to Index](#index-books)**

0 commit comments

Comments
 (0)