亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在git中別名命令?

如何在git中別名命令?

Git
慕姐8265434 2019-11-03 04:01:16
我看了一個截屏錄像,那里有人git stgit ci上班。當我這樣做時,我遇到一個錯誤,問我是否還有其他意思。作為git newb,我需要知道您需要做什么才能完成此任務?
查看完整描述

3 回答

?
慕尼黑8549860

TA貢獻1818條經驗 獲得超11個贊

我認為最有用的gitconfig是這樣的,我們總是在git中使用20%的功能,您可以嘗試“ g ll”,這很了不起,詳細信息:


[user]

    name = my name

    email = [email protected]

[core]  

    editor = vi 

[alias]

    aa = add --all

    bv = branch -vv

    ba = branch -ra

    bd = branch -d

    ca = commit --amend

    cb = checkout -b

    cm = commit -a --amend -C HEAD

    ci = commit -a -v

    co = checkout

    di = diff

    ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat

    ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph

    ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative

    mm = merge --no-ff

    st = status --short --branch

    tg = tag -a 

    pu = push --tags

    un = reset --hard HEAD  

    uh = reset --hard HEAD^

   [color]  

    diff = auto  

    status = auto  

    branch = auto 

   [branch]  

    autosetuprebase = always




查看完整回答
反對 回復 2019-11-04
  • 3 回答
  • 0 關注
  • 474 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號