Skip to content

Instantly share code, notes, and snippets.

@dazecoop
Last active February 23, 2023 12:13
Show Gist options
  • Save dazecoop/05ee9a7844f567396a34807a5ddf8724 to your computer and use it in GitHub Desktop.
Save dazecoop/05ee9a7844f567396a34807a5ddf8724 to your computer and use it in GitHub Desktop.
Setup a remote git repository on server for git pull latest changes

git init
git remote add origin git@github.com:...GITHUB_URL...
git fetch
git checkout -f main
git remote -v

Then
git pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment