使用
命令能够获得如下结果
$ git statusOn branch dev_getTicketCntYour branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits)nothing to commit, working directory clean
这就表示本地库还有没push的内容
若是是如下结果,就表示本地所有都push了,同时表示本地还不是最新的,提示那里都提示你要去远程拿代码合并了
$ git statusOn branch dev_activit_grabTicketYour branch and 'origin/master' have diverged,and have 1 and 4 different commits each, respectively. (use "git pull" to merge the remote branch into yours)nothing to commit, working directory clean
总结:其实git的每条命令以后都有不少提示的,从中能够学到不少其余操做