老师,我刚刚稍微又把我的home.vue文件改动了下。然后执行了一些命令您看下,但是我在我git仓库中没能找到我更新的内容
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (index-ajax)
$ git status
On branch index-ajax
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: src/pages/home/Home.vue
no changes added to commit (use "git add" and/or "git commit -a")
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (index-ajax)
$ git add .
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (index-ajax)
$ git commit -m 'tyechange'
[index-ajax cba09b9] tyechange
1 file changed, 1 insertion(+), 1 deletion(-)
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (index-ajax)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (index-ajax)
$ git checkout master
Switched to branch 'master'
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (master)
$ git merge origin/index-ajax
merge: origin/index-ajax - not something we can merge
阿炎@▒▒▒▒ MINGW64 /d/git/git仓库项目/travel/project (master)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add <name> <url>
and then push using the remote name
git push <name>
正在回答 回答被采纳积分+1
今天写的代码中我在.gitignore文件中加了一个
static/mock
静态的参数,用于我远程获取 就和fastMock一样
然后在config中也写了点东西 除了正常的src文件代码编写之外就这些变动了
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星