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
# 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
# First, make sure you are in the local repository's directory.
# Initialize and configure Git if not done already.
git init
# Add the remote repository URL as 'origin'
git remote add origin <remote repository URL>
# Fetch the latest changes from the remote repository
git pull origin <branch name>
# Make the necessary changes to your local files
# Add all the changed files to the staging area
git add .
# Commit the changes with a descriptive message
git commit -m "Your commit message here"
# Push the changes to the remote repository
git push origin <branch name>
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