2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

みんなの便利なaliasも教えてくれよな!

[alias]
    graph = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
        # 上の省略形
    gr = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
    st = status
    cm = commit
    pl = pull
    ph = push
        # Untracked filesを表示せず,not stagedと,stagedだけの状態を出力する
    stt = status -uno
        # 行ごとの差分じゃなくて,単語レベルでの差分を色付きで表示する
    difff = diff --word-diff
    b = branch
    co = checkout
    arikui = "!f () { git checkout $1; git branch --merged|egrep -v '\\*|develop|main'|xargs git branch -d; git fetch --prune; };f"

git arikui はリモートにマージ済みのブランチをローカルから一括で消すコマンド。
arikuiの部分はお好きな文字列でどうぞ。

でも最近はSourceTreeでラクしてます。

2
0
0

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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?