Skip to content

Instantly share code, notes, and snippets.

@elsheikh21
Created March 30, 2022 12:40
Show Gist options
  • Save elsheikh21/984c9fb8b0591381ca909c16a763dbbf to your computer and use it in GitHub Desktop.
Save elsheikh21/984c9fb8b0591381ca909c16a763dbbf to your computer and use it in GitHub Desktop.
  1. Create a git repo locally, default branch_name:main or master based on the convention you are following>

git init -b <branch_name>

  1. add all files to local git repo

git add --all

  1. commiting the files

git commit -m

  1. your remote repo URL

git remote add origin <REMOTE_URL>

  1. verify the added remote

git remote -v

  1. Push your changes to the remote repo

git push origin main

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