Please, help. I made a mistake:
I move branch from commit a
to commit b
.
And now commit a
is missed or detached.
When I'm trying:
set tag on gitlab on commit a
or
git checkout a && git checkout -b branch-name && git push origin branch-name
on local mashine
I get error
remote: fatal: ambiguous argument '1fcdaca7723d5939178c2557254c124aee30ec2d~1': unknown revision or path not in the working tree.
remote: Use '--' to separate paths from revisions, like this:
remote: 'git <command> [<revision>...] -- [<file>...]'
How it can be fixed?
答案 0 :(得分:1)
如果您仍然在本地提交,则只需创建一个引用它的新分支:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary("C:\\Program Files\\Mozilla Firefox\\firefox.exe")
profile = FirefoxProfile("C:\\Users\\AtechM_03\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\w8iy627a.debanjan")
driver = webdriver.Firefox(firefox_profile=profile, firefox_binary=binary, executable_path="C:\\Utility\\BrowserDrivers\\geckodriver.exe")
driver.get('https://google.com')
现在你可以把那个分支推到gitlab或者其他任何地方。