Skip to content

Instantly share code, notes, and snippets.

@youhey
Created August 29, 2016 09:28
Show Gist options
  • Save youhey/cf57eed713123c09a904aefbed68d5a8 to your computer and use it in GitHub Desktop.
Save youhey/cf57eed713123c09a904aefbed68d5a8 to your computer and use it in GitHub Desktop.
過去を持たない空のブランチを追加したい
$ git clone git@git.example.com:hoge/hoge.git hoge
$ cd hoge
$ git checkout --orphan new_branch_name
$ git rm -rf .
$ touch README.md
$ git add README.md
$ git commit -m "Initial commit"
$ git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment