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

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch