Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 从窗口创建的git分支在gitbash窗口上看不到_Windows_Git - Fatal编程技术网

Windows 从窗口创建的git分支在gitbash窗口上看不到

Windows 从窗口创建的git分支在gitbash窗口上看不到,windows,git,Windows,Git,我从devdesktop应用程序的windows命令框中创建了一个新分支。但是当我到达git bash并试图找到这个分支时,它并不存在。如何将我在git bash中看到的内容与我创建的内容同步?选择以下命令之一: (1) 显示带有时间戳的最新分支: git for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads (2) 列出远程和本地的所

我从devdesktop应用程序的windows命令框中创建了一个新分支。但是当我到达git bash并试图找到这个分支时,它并不存在。如何将我在git bash中看到的内容与我创建的内容同步?

选择以下命令之一:

(1) 显示带有时间戳的最新分支:

git for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads
(2) 列出远程和本地的所有分支:

git branch
(3) 列出所有分支,按提交时间顺序描述,您将看到以下分支:

git branch --sort=-committerdate

(如果订单在ASC中,
git branch--sort=committerdate

我在另一个存储库中,该存储库具有相同的目录结构,但位于一个单独的驱动器上。

您确定要查看相同的.git存储库吗?如果您
git branch--list
,您看到分支了吗?实际上,您应该看到分支。不需要在多个接口之间同步分支。您确定您在同一目录/存储库中吗?你能运行
ls.git/refs/heads
并给出输出吗?你的分行应该在那里。