paint-brush
How to Commit and Push a Blank Directory to Your Git Repository?by@smpnjn
245 reads

How to Commit and Push a Blank Directory to Your Git Repository?

by Johnny Simpson2mMay 15th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

If you want to create a blank directory, you can do that easily, but it won't be pushed when we use git push to push it to your remote. The easiest way to do this is by creating a .gitignore file within the directory you want to maintain.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How to Commit and Push a Blank Directory to Your Git Repository?
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Openmtx
Nullob
Platypush
Stemy
Ktachibana
Tromdienste
Ztn
Hyperborea
100yenmac
Mastodon
Asorrybowl