0
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 3 years have passed since last update.

macOSでgitのエイリアスを設定

Last updated at Posted at 2020-06-06

自分メモ用

2年間くらいSourcetree使ってた
新しい職場では基本gitはコマンド操作でとのお達し
コマンド慣れてきた
コマンド全部打つのめんどくさくなってきた
コマンドは省略できると聞いていたので職場のwindowsで設定
自宅macでもgit使う機会増えてきた
設定どうやるんだっけ
ググる
見つける↓

参照

下記ファイルを編集

/Users/{userName}/.bash_profile

編集内容

alias bn="git branch"
alias st="git status -s"
alias dif="git diff"
alias pus="git push origin"
alias pul="git pull origin"
alias cmm="git commit -m"
alias add="git add"
alias cko="git checkout"
alias fet="git fetch"

内容保存後、ターミナル再起動 or source ~/.bash_profile

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