Skip to content

Instantly share code, notes, and snippets.

@ZakiMohammed
Created May 18, 2020 09:47
Show Gist options
  • Save ZakiMohammed/b27976cab2a120b94813f8b2228596bd to your computer and use it in GitHub Desktop.
Save ZakiMohammed/b27976cab2a120b94813f8b2228596bd to your computer and use it in GitHub Desktop.
Git Starter Commands
…or create a new repository on the command line
echo "# foo-foo-app" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ZakiMohammed/foo-foo-app.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/ZakiMohammed/foo-foo-app.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment