Skip to content

Instantly share code, notes, and snippets.

@rastislavcore
Created February 2, 2023 16:20
Show Gist options
  • Save rastislavcore/9a4fa86daf35d3fa592e0c090aa213ae to your computer and use it in GitHub Desktop.
Save rastislavcore/9a4fa86daf35d3fa592e0c090aa213ae to your computer and use it in GitHub Desktop.
Initiate empty Git repository with the Readme file
#!/bin/bash
echo "# Readme" >> README.md
git init
git add Readme.md
git commit -m "Readme file"
git branch -M main
git remote add origin git@github.com:username/repo.git
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment