# initialize a new repo
echo "# repo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:user/repo.git
git push -u origin main
# or push an existing repository from the command line
git remote add origin [email protected]:user/repo.git
git branch -M main
git push -u origin main
Created
August 4, 2024 05:52
-
-
Save my-slab/e16d15c7953b53741ec9e061e7304a52 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment