xxxxxxxxxx
# Make sure you have created the repo within github first.
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git push -u origin main
xxxxxxxxxx
create a new repository on the command line
echo "# {Repo Name}" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git push -u origin main
push an existing repository from the command line
git remote add origin https://github.com/cdcdianne/ReactJS-TheMovieDB.git
git branch -M main
git push -u origin main
xxxxxxxxxx
git init
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/{your username}/{repoName}.git
git push -u origin main
xxxxxxxxxx
$ git push origin main
# Pushes the changes in your local repository up to the remote repository you specified as the origin
xxxxxxxxxx
//Create a new repository
echo "# dd" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://your git repo link
git push -u origin main
xxxxxxxxxx
$ git add .
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.