How can I correct this mistake, please see screen shot

As you are able to see there is a long line of commands printed on my repo, dont know how it got there,just above PAM.cc, below branch:master. Can some body tell me how to edit or delete that.

Many Thanks

What’s displayed there is the first line of the commit comment of the latest commit to the repository. You can submit a new commit (even an empty one) with a shorter first line to make it look better. From the command line in your local copy of your repository you could use:

git commit --allow-empty -m "Better commit message"
git push

I hope that helps!

2 Likes

Hi, 

   thanks for reply…I tried your commands but did not work then I deleted the remote repo and .git hidden folder from local and tried again but again same thing happen. Im not sure what it is. Thanks any way.

If the repository is public so you can share a link to it, I might be able to help diagnose further.

1 Like

Thanks for replying again. I deleted again and re-created remote repo but problem still there, dont know why, followed exact procedure showed when creating new remote repo on github, that weird comments still there, below is the link 

https://github.com/mahalepoto/Udacity-1st-Project-PAM

cheers

I found the problem, here’s the output from git log on your repository:

Author: “mahalepotocd css/Udacity/PAM-Working/git initdefaults write com.apple.finder AppleShow AllFiles YESdefaults write com.apple.finder AppleShowAllFiles YEScd Users/mh/Desktop/CSS/Udacity/PAM-Working/filescd filescd /Users/mh/Desktop/CSS/Udacity/PAM-Working/exitgit config --global user.name “mahalepoto <mahalepot>
Date: Wed Feb 14 00:18:26 2018 +0000

    First Commit

Somehow you’ve told Git that your user name is:

mahalepotocd css/Udacity/PAM-Working/git initdefaults write com.apple.finder AppleShow AllFiles YESdefaults write com.apple.finder AppleShowAllFiles YEScd Users/mh/Desktop/CSS/Udacity/PAM-Working/filescd filescd /Users/mh/Desktop/CSS/Udacity/PAM-Working/exitgit config --global user.name “mahalepoto <mahalepot>

If you go to the command line and type git config --global user.name mahalepoto, press Enter, and then start over, things should work better this time.

1 Like

It works fine now…Many thanks for your help.

1 Like