Ports are a concept of UDP and TCP. Ping messages are technically referred to as ICMP Echo Request and ICMP Echo Reply which are part of ICMP. ICMP, TCP, and UDP are “siblings”; they are not based on each other, but are three separate protocols that run on top of IP.
Therefore you can not ping a port. What you can do, is use a port scanner like nmap and check if ip/host and port are accessible.
$ nmap -p 80 www.google.com
Starting Nmap 6.40 ( http://nmap.org ) at 2015-12-02 14:38 IST
Nmap scan report for http://www.google.com (22.214.171.124)
Host is up (0.085s latency).
Other addresses for http://www.google.com (not scanned): 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168
rDNS record for 22.214.171.124: sa-in-f106.1e100.net
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 0.64 seconds
Git represents branches as pointers to the latest commit in that branch. If you haven’t created a commit yet, there’s nothing for that branch to point to. So you can’t really create branches until you have at least one commit.
Git allows to create a empty branch but its not common way of using Git.
First create create an empty Git repository by using following command:
$ git init
To create empty branch use following command:
$ git commit --allow-empty -m "initial commit for empty brach"
After running above command it will create a master branch, run following command to conform: