Initialize a local directory as a Git repository and add it to Github Part 3 – Initialize the local directory as a Git repository

In the local folder use Git bash and initialize the folder.

git init -b main

Now go ahead and create a file, add and stage the files and commit the changes to prepare to push to the remote repository.

echo "# itseasyasonetwothree" >>
git add
git commit -m "First commit"

Now next time we’ll add our remote repository and push the changes.

Leave a Reply

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

You are commenting using your 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

%d bloggers like this: