Saturday, 24 August 2019

How to work on your "git commit windows" and escape when you are done with "Initial commit"

After you must have done your

git add filename.html

And gotten to the git commit section, after typing

git commit

And tapping the "enter" key on your keyboard a new windows will appear, don't be scared.

On the new windows, you would see informations like this with # hashtags

# on branch master

# Initial commit

On your keyboard tap the "i" key this will enable you to edit your commit windows and after that.

Go to the # just before the "Initial commit" and delete the #. Your windows information should look like this now

# on branch master

Initial commit

Now on your keyboard tap the "esc" escape key just beside your f1 key. This should place your cursor at the bottom of your screen. Now type

:wq

After typing this tap the "enter" key on your keyboard. This should take you back to your git bash.

But if this doesn't work, that's after typing ":wq". Kindly tap on the "esc" key on your keyboard and type

:x!

And press the "enter" key on your keyboard and this will definately take you back to your git bash area.

Congratulatuon

You are now ready to push your folder to GitHub.

Read my other article on how to push to GitHub with ease.

I am Anowai James a Backend Python developer that's the drive. Tech preacher

No comments:

Post a Comment