Posts

Showing posts with the label git config

git config

You can use the --unset flag of git config to do this like so: git config --global --unset user.name git config --global --unset user.email If you have more variables for one config you can use: git config --global --unset-all user.name

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