开发者

github - Adding a file to branch

开发者 https://www.devze.com 2023-01-01 01:07 出处:网络
So I\'m following these instructions: http://mark-kirby.co.uk/2008/using-git-and-github-on-os-x, and so far I\'ve cloned the project I want to work on and created a branch.

So I'm following these instructions: http://mark-kirby.co.uk/2008/using-git-and-github-on-os-x, and so far I've cloned the project I want to work on and created a branch.

Now I wish to add files that exist in another folder on my machine, but I keep getting the following:

fatal: pathspec 'Users/mic/On开发者_如何学CePageCRMVC/MKTsite25-05/index.html' did not match any files

However, the file definitely does exist... Am I trying to do something that is not allowed and the error message is throwing me off?


You cannot add them automagically. You should copy the files into the git repo manually, then do a normal add/commit.

0

精彩评论

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