Skip to main content

GIT

1. Basic Commands

1.1. Query remote repositories

Used to display all remote repositories of the current repository along with their corresponding URLs:

git remote -v

1.2. Update Account Information

git config --global user.name "your name"
git config --global user.email "your email@example.com"

If you only want to update the current project:

git config user.name "your name"
git config user.email "your email@example.com"

1.3. Modify Remote Repository URL

git remote set-url origin <new-url>