📜  git push 空目录 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:41.335000             🧑  作者: Mango

代码示例1
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