The process of setting up a GitHub account works just fine but it doesn\'t work when I try pushing my repository to GitHub. The error message it shows is as follows:
On centos 7
check ip address using command ifconfig. you will get information like this
ens33: flags=**** mtu ****
inet ***.***.***.*** netmask ***.***.***.0 broadcast ***.***.***.***
add inet ip address and hostname in file /etc/hosts
a. open file vi /etc/hosts
b. add ip and host like ip_address hostname hostname
reboot
It will attach ip and host.