HarshKapadia2 / git_basics

A PWA and TWA for Git and GitHub concepts and commands.
https://harshkapadia2.github.io/git_basics
Creative Commons Attribution Share Alike 4.0 International
104 stars 20 forks source link

Add 'Push Empty Git Commits' #85

Closed tusharnankani closed 2 years ago

tusharnankani commented 2 years ago

git commit --allow-empty -m "Empty commit"

It's like pushing a normal commit, except that you add the --allow-empty flag.

Reference: https://catalins.tech/git-empty-commit

MahmoudDawood commented 2 years ago

Sorry I don't get it, is the push empty git commit command not working?

HarshKapadia2 commented 2 years ago

No, this is an issue to add the empty commit option to the git commit command options in git_basics.

MahmoudDawood commented 2 years ago

I've tried to solve the issue as my first one ever and made a pull request, Could you review it and tell me if all is good?