Skip to content

Instantly share code, notes, and snippets.

@uzl uzl/
Last active Apr 26, 2019

What would you like to do?
Useful git CLI

Upload a new local repository to gitlab

This will create a new project on Gitlab without creating it manually on the server

git push --set-upstream address/your-project.git

Changing/Switching remote URLs

# view current remote URL
git remote -v

# change
git remote set-url origin

# Verify new remote URL
git remote -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.