VOOZH about

URL: https://qiita.com/orimomo/items/3f9ed343a9de9edbe284

⇱ SourceTreeユーザーが、空コミットだけターミナルでする手順 #Git - Qiita


👁 Image
7

Go to list of users who liked

4

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@orimomo

SourceTreeユーザーが、空コミットだけターミナルでする手順

7
Last updated at Posted at 2018-11-20

WIP PRベースの開発をしていると空コミットよく使いますよね。
SourceTreeでは色々いじったりしないと空コミットができないようなので、そこだけ切り出してターミナルでやろうとしたときのメモです。

手順

新規ブランチの作成

SourceTreeで行う。

ブランチの確認

ターミナルで今いるブランチが間違ってないかを確認する(一応)。
cdで対象のディレクトリまで行って

git branch

空コミット

git commit --allow-empty -m "first commit"

リモートにプッシュ

SourceTreeで行う。

7

Go to list of users who liked

4
0

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7

Go to list of users who liked

4