Skip to content

Instantly share code, notes, and snippets.

@m-hirata
Created July 10, 2014 08:18
Show Gist options
  • Save m-hirata/9ef9b87e94aa00cebbbb to your computer and use it in GitHub Desktop.
Save m-hirata/9ef9b87e94aa00cebbbb to your computer and use it in GitHub Desktop.
空コミットの方法
git init
git commit --allow-empty
L insert commit message
 first commit //iでもaでも押してメッセージを入力
 # Please enter the commit message for your changes. Lines starting
 # with '#' will be ignored, and an empty message aborts the commit.
 # On branch master
 #
 # Initial commit
 //メッセージを入力したらESC → :wqと入力
git remote add origin { git-URL }
git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment