2012-08-22 18 views
0

目前,當我運行git push test-server development:master它推高了我的github提交的代碼。我想要做的是在我的test分支中推送我在本地工作的內容,以在服務器上運行測試,而無需將其提交給github。這可能嗎?如果是這樣,我該用什麼命令?由於如何將非本地化的本地開發代碼推送到Heroku服務器?

+0

你看過https://devcenter.heroku.com/articles/git嗎? –

+0

是的,我先去那裏,但找不到這個問題的答案。 – Goalie

+0

啊,忽略我的回答(我會刪除它)我不知道什麼是heroku,只是認爲它是一個遠程名稱.... –

回答

0

推一個分支的Heroku是:

git push heroku your_branch:master 
# Where [master:branch_name] = master is heroku, branch_name is your local branch 

推主本身就是

git push heroku master 


比如最近我做了一個分支 - v311我想推到heroku,但不是合併(但)成爲主或推到github,所以我用:

git push heroku v311:master 
0

這是可能的。只需將您的測試分支推送到heroku。

$ git push test-server test:master 
相關問題