Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 273 Bytes

how-to-update-origin.md

File metadata and controls

18 lines (13 loc) · 273 Bytes

How to update git origin

1. Check current remote origin

git remote -v

2. Change remote origin

# if origin is empty
git remote add origin <new-url>

# if has origin, remove it first
git remote remove origin
git remote add origin <new-url>