Useful Git commands

Frequently used git commands collection

# Adding a remote repository
git remote add origin https://github.com/user/repo.git

# Check remote repository settings.
git remote -v

#Changing a remote repository's URL
git remote set-url origin https://github.com/user/repo.git