git可以使用
git status
来查看那些文件没有提交 commit,但是如何查看哪些文件没有提交push到远程?
版本控制 git
「哪些文件没有提交push到远程」——git status 说明哪些文件 没有提交 。要看哪些 提交 在远程不存在,可以试试这个命令,看哪些提交在哪些分支上有(而另外的分支上没有):
git show-branch -a --color=always
git status查看当前文件状态
git status 里不是有嘛:
> git status On branch refactor Your branch is ahead of 'origin/refactor' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean
只要提交过commit后, 当你push的时候自然就会push到远程了吧. 唯一要区分的是有没有push过而已
推荐你用 Source Tree ,对Git整个分布式流程一目了然,同时也能解决题主在本题中的要求。 Atlassian出的敏捷开发工具异常好用,Source Tree是代表作之一。
git中 如何为每个文件单独添加注释 再提交
git push -u origin 总是报错
正文中的情况怎么使用版本管理器 求一个最佳思路
关于版本控制系统... ...
使用git时如何忽略特定文件的变化?
更改多个项目共用某一部分代码,如何通过版本控制让每个项目中都更改