我想推送到一个不是 master 的分支。这就是我所做的:
git init
git add .
git commit -m "first"
git push origin second (second is the name of a branch) but it say
fatal: origin does not appear to be a git repository.
fatal: could not read from remote repository.
Please sure you have the correct access rights and the repository exists.
昨晚我可以做到这一点,但在早上它突然不认识我的分支了!当我执行 git 分支时它不显示我的分支,它只显示一个主分支。但是为什么我有时会遇到这个问题?
谢谢 :)