当我从或任何其他网站克隆存储库并键入:git status时,它会检查当前分支对源远程的更改,并显示消息(在进行任何新提交之前):Your branch is up-to-date with 'origin/master'.。
但是,在我创建的存储库中,它不检查更改,我还尝试添加一个同名为origin的远程设备,但这也不起作用
我还查看了文档git help status,但没有关于这方面的信息。
因此,每当我使用git status命令时,我将如何使我的存储库检查对源远程的更改。
Windows 2008上的libgit2sharp 0.21.0.176 C#
我需要获得某一部门的参考资料。
在我的Windows机器上,我在GitHub上从远程复制本地回购。
接下来,我执行以下libgit2sharp代码:
var localRepo = new Repository({local-path},RepositoryOptions);
var remote = localRepo.Network.Remotes.Add("origin", {remote-repo-uri);
localRepo.Network.Fetch(remote, FetchOpt
我最近创建了一个GIT存储库的远程副本,远程版本有3个分支development,staging,master。
现在,我想从远程的staging分支获取最新信息,因此我尝试切换到本地repo的staging分支,从远程repo的staging分支获取更新。
我使用下面的命令切换到临时分支git checkout staging,但它抛出了一个错误pathspec staging does not match any file(s) known to git,但是当我尝试git checkout origin/staging时,它确实签出了,但分支名称是一些随机字符,如1d63d7d
当我