如何push到Github和Heroku

系统部署
2013-11-08 19:42

将推送地址加入配置文件

在项目文件夹下,运行

git remote add github [email protected]:<user name>/<project name>.git
git remote add heroku [email protected]:<project name>.git

查看文件内容

sudo tail -n 1000 .git/config

内容如下

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true

[remote "github"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = [email protected]:<user name>/<project name>.git
[branch "master"]
        remote = github
        merge = refs/heads/master

[remote "heroku"]
        fetch = +refs/heads/*:refs/remotes/heroku/*
        url = [email protected]:<project name>.git
[branch "master"]
        remote = heroku
        merge = refs/heads/master

更新并推送

git add .
git commit -a
git push github master
git push heroku master
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何push到Github和Heroku

系统部署
2013-11-08 19:42

将推送地址加入配置文件

在项目文件夹下,运行

git remote add github [email protected]:<user name>/<project name>.git
git remote add heroku [email protected]:<project name>.git

查看文件内容

sudo tail -n 1000 .git/config

内容如下

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true

[remote "github"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = [email protected]:<user name>/<project name>.git
[branch "master"]
        remote = github
        merge = refs/heads/master

[remote "heroku"]
        fetch = +refs/heads/*:refs/remotes/heroku/*
        url = [email protected]:<project name>.git
[branch "master"]
        remote = heroku
        merge = refs/heads/master

更新并推送

git add .
git commit -a
git push github master
git push heroku master
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI

如何push到Github和Heroku

系统部署
2013-11-08 19:42

将推送地址加入配置文件

在项目文件夹下,运行

git remote add github [email protected]:<user name>/<project name>.git
git remote add heroku [email protected]:<project name>.git

查看文件内容

sudo tail -n 1000 .git/config

内容如下

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true

[remote "github"]
        fetch = +refs/heads/*:refs/remotes/origin/*
        url = [email protected]:<user name>/<project name>.git
[branch "master"]
        remote = github
        merge = refs/heads/master

[remote "heroku"]
        fetch = +refs/heads/*:refs/remotes/heroku/*
        url = [email protected]:<project name>.git
[branch "master"]
        remote = heroku
        merge = refs/heads/master

更新并推送

git add .
git commit -a
git push github master
git push heroku master
加载 Disqus 评论

© 版权所有 悟理 2013-2019
Powered By Jekyll & Semantic UI