开发者

How to checkout .git

My boss gave me a path: xxx@yyy:git/zzzz.git

I tried git checkout xxx@yyy:git/zzzz.git, but got "fatal: Not a git repository Failed to find a valid git directory." I also tried xxx@yyy:/git/zzzz.git 开发者_运维百科and xxx@yyy://git/zzzz.git, all returned the same information I also tried git branch, but got "fatal: Not a git repository" What should I do? Thanks!


http://gitimmersion.com/ is a good GIT overview, you should go through that before you start using git. As mentioned already you should do

Clone repro

$ git clone xxx@yyy:git/zzzz.git

Assign the original repo to a remote called "upstream"

$ cd zzzz
$ git remote add upstream xxx@yyy:git/zzzz.git
$ git fetch upstream


Try:

git clone xxx@yyy:git/zzzz.git zzzzz

Also make sure to read the git documentation before you start messing around with the code.


Try "git clone" instead of "git checkout"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜