git cheatsheet

How to change the git host URL

# to create a new remote url
git remote -v # to print and view the remote address for push and pull
git remote set-url origin git@yourgitserver.com:username/repo_name.git  
# to add a remote url
git remote add newname git@yourgitserver.com:username/repo_name.git