failed to sync branch You might need to open a shell and debug the state of this repo.

failed to sync branch You
might need to open a shell and debug the state of this

repo.

i made some changes to a file a month ago. i just realized today that they didn‘t go anywhere; the GitHub web-site has no history of my changes.

The client has no indication that anything is out of date (there are no "uncommitted changes"). But there are "unsynced
commits":

How do i sync unsynced commits?

I tried nothing, and i‘m fresh out of ideas

i tried clicking the sync button
(whatever that means), but all i get (after a progress bar moves for about 7 seconds) is:

failed to sync branch

You might need to open a shell and debug the state of this repo.

Clicking OPEN SHELL, causes a powershell prompt to appear, where i type:

debug the state of this repo

But that doesn‘t seem to do it:

How do i sync unsynced commits in the GitHub for Windows client?

解决办法:

fatal: Not a git repository (or any of the parent directories): .git

提示说没有.git这样一个目录,解决办法如下:

git init就可以了!

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-11-07 19:01:31

failed to sync branch You might need to open a shell and debug the state of this repo.的相关文章

Failed to sync Gradle project'xxxxxxx',failed to find Build Tools revision 23.0.0 rc2

昨天更新了一下6.0然后就出现这个问题了,然后就得解决这个问题 这样的话就ok了 版权声明:本文为博主原创文章,未经博主允许不得转载. Failed to sync Gradle project'xxxxxxx',failed to find Build Tools revision 23.0.0 rc2

转-git feature branch workflow

https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow Getting Started Setting up a repository git init git clone git config Saving changes git add git commit Inspecting a repository git status git log Viewing old commits

【转】repo sync同步Android 源代码下载到99%出错

原文网址:http://blog.csdn.net/mr_president/article/details/7693707 根据Google官网上的方法在我们实验室搭建了一个本地的Android代码镜像服务器, 今天一个师弟在服务器上利用repo sync下载源代码下到99%的时候,出现了下面的问题: $ repo sync fatal: Not a git repository: '/home/andev/android/.repo/projects/bionic.git'Fetching

Failed to resolve com.android.support:support-compat:25.4.0

3down votefavorite I am trying to include this library to my project by adding compile 'jp.wasabeef:recyclerview-animators:2.2.7' to the dependencies. When the graddle sync happens an error produced like below Failed to resolve com.android.support:su

【GitHub Desktop】MacOS和Win下配置及简单的使用

一. GitHub介绍 1.GitHub 是为开发者提供 Git 仓库的托管服务.这是一个让开发者与朋友.同事.同学及陌生人共享代码的完美场所. 总结一下,GitHub 最大的特征是"面向人" 2.GitHub 与 Git 的区别在 Git 中,开发者将源代码存入名叫"Git 仓库"的资料库中并加以使用. 而 GitHub 则是在网络上提供 Git 仓库的一项服务.也就是说,GitHub 上公开的软件源代码全都由 Git 进行管理. (图片来源GitHub 是怎样的

Nexus 7 Cyanogenmod OS Compile and errors

Nexus 7 Hardware information The Nexus 7 comes with several types, genaration I and II,  sales in 2012 and 2013. The Gen1 and Gen2 have different Processor, one is the NVIDIA Tegra, another with QCT APQ8064.  These two type of devices, have different

Ubuntu虚拟机编译Android6.0总结

1 前言 昨天使用清华的源下载了android 6.0的源码,校园网可以达到10M的速度,爽!今天一大早就迫不及待地准备编译一个模拟器版本,看看效果,哪知竟然耗费了一整天的时间才搞定...为了避免其他人在同样的问题上浪费时间,特记录整个编译过程中遇到的问题和解决方案,毕竟时间就是金钱! 2 背景 我是在MAC上安装的ubuntu14.04 64bit系统,起初分配了3G的内存(血的教训,完全不够用!),和两个核心.编译的系统版本为6.0.1_r9和6.0.0_r26 3 编译过程遇到的问题和解决

Windows平台使用Github

Github难免会用到,由于我的Mac虚拟机只有10.8版本,使用不了Github(2015-4-21)当前版本的Mac客户端提交代码(Clone到本地是可以直接用Xcode做的),所以只有在Windows上提交代码. Windows上直接用Github客户端提交会报错: Failed to sync this branch Windows上提交代码,首先最好Chrome能翻墙.怎么翻我之前写过一篇,然后被CSDN自动放到垃圾箱也是醉了.能翻墙之后,将Chrome里设置的代理服务器在git的命令

HTML5旋转立方体

在工作中的经常使用repo命令,但是有时会忘记一些命令和遇到的一些问题,记录下来方便已经查询. 常见问题: 问题1:找不到命令:repo 方法: 在下载android源码的时候用repo时提示找不到命令,可以用如下方法解决,在命令行中输入如下两行: echo 'export PATH=$PATH:$Home/bin' >>~/.bashrc export PATH=$PATH:$HOME/bin 问题2: /home/xxxxxx/bin/repo: line 1: 在未预料的"ne