how to use git config
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
Dùng để tạo cú pháp ngắn gọn cho câu lệnh git
Ví dụ
$ git config --global alias.unstage 'reset HEAD --'
thì 2 câu lệnh duwois là tương đương
$ git unstage fileA
$ git reset HEAD fileA
Comments
Post a Comment