我刚开始使用git进行版本控制;来自svn背景。
我创建了一个分支,用于进行一些更改,名称为my_repo
。我不记得我是否使用过-b
选项。
~MyProject$ git checkout -b my_repo or git checkout my_repo
之后我做了一些改变,提交了他们并推动了他们。我确信我的更改会被推送,因为它会显示在日志中
~MyProject$ git branch
dev
* my_repo
master
~MyProject$ git log
commit a2104d193c8642360e3a09cf5260739fb25
Author: Adam Douglas <adam.douglas@mycompany.com>
Date: Thu Sep 3 12:18:19 2015 +0530
Services and controllers
commit b4a225ed1e69de39566c088c8d285936ae4
Author: Adam Douglas <adam.douglas@mycompany.com>
Date: Tue Sep 1 17:28:26 2015 +0530
DB Changes
~MyProject$ git status
On branch my_repo
Untracked files:
(use "git add <file>..." to include in what will be committed)
Scraper/${sys:catalina.base}/
nothing added to commit but untracked files present (use "git add" to track)
但是,当我尝试提取更改时,我会收到以下错误。
~/Documents/SourceCode/IntelliJ/MyProject$ git pull origin my_repo
fatal: Couldn't find remote ref my_repo
~/Documents/SourceCode/IntelliJ/MyProject$ fatal: The remote end hung up unexpectedly
为什么会这样?我可以在日志中看到它们。
答案 0 :(得分:2)
很明显,远程存储库中不存在分支my_repo
。这可能意味着两件事之一:
git push --delete origin my_repo
。 在任何情况下,您都必须先push
使用git push origin my_repo
If lista <> "" Then
Dim objWord As Object
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
objWord.Documents.Open ("\\SERVER-PDC\Archivi\DOCUMENTI SU SERVER\LAURA\pianificazione produzione\cicli mancanti.doc")
Set objWord = GetObject(, "Word.Application")
Set objSelection = objWord.Selection
With objSelection.Paragraphs(1).Range
.InsertAfter "Promemoria mancanti della settimana " & suffisso & "senza ciclo:" & Chr(13) & lista & Chr(13)
.InsertParagraphAfter
End With
objWord.Application.Visible = True
Set objWord = Nothing
End
End If
End Sub