How to connect to repository and push changes to live with terminal - Brown Surfing

How to connect to repository and push changes to live with terminal

Posted on: July 17th, 2022
By: Efrain Lemus

git init

git remote add origin [url]

git add .
git commit -m "first commit"
git push origin [branch name]

It seems that “master” is created by default now, instead of main.

To push changes to live, you only the last three lines

git add .
git commit -m "first commit"
git push origin [branch name]

After pushing to live, there’s a prompt that’ll ask you to enter your computer password.

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published.