首页 > 解决方案 > 如何将提交推送到现有仓库

问题描述

如何提交对现有仓库的更改?

$ git remote -v

github  git@github.com:jhardik366/yelp-camp.git (fetch)

github  git@github.com:jhardik366/yelp-camp.git (push)

heroku  https://git.heroku.com/yelp-camp-19.git (fetch)

heroku  https://git.heroku.com/yelp-camp-19.git (push)

origin  git@github.com:jhardik366/c9.git (fetch)

origin  git@github.com:jhardik366/c9.git (push)

如何推送到 yelp-camp git。?

我尝试了这些步骤:

git add abc.js

git commit -m "inital commit"

git push

它不工作。

标签: bashgit

解决方案


推荐阅读