Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git push empty directories

gitkeep@example: ~$ mkdir empty-directory
gitkeep@example:~$ cd empty-directory
gitkeep@example:~$ touch .gitkeep
gitkeep@example:~$ git add .
gitkeep@example:~$ git commit -m "Commit empty folder in Git with gitkeep"
gitkeep@example:~$ git push origin
Source by www.theserverside.com #
 
PREVIOUS NEXT
Tagged: #git #push #empty #directories
ADD COMMENT
Topic
Name
2+4 =