Git: Push a new repository

create a new repository on the command line

echo "# helm-nexus" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/{username}/helm-nexus.git
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/{username}/helm-nexus.git
git push -u origin master
Advertisements

2 thoughts on “Git: Push a new repository”

  1. You really make it appear really easy with your presentation but I find this topic to be really something which I believe I’d by no means understand. It kind of feels too complicated and very vast for me. I’m taking a look ahead in your subsequent post, I’ll attempt to get the grasp of it!

    Liked by 2 people

  2. Thanks, I’ve recently been searching for information approximately this subject for a long time and yours is the best I’ve discovered till now. However, what about the conclusion? Are you sure about the source?

    Liked by 2 people

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s