2012-04-28 118 views
34

我是git的新手。
我已经做远程回购的克隆如下如何提交到远程git存储库

git clone https://[email protected]/repo.git 

然后我做了

git checkout master 

做了一些修改,并承诺这些变化给我的本地库像下面..

git add . 

git commit -m "my changes" 

现在我必须将这些更改推送到远程存储库。
我不知道该怎么做。

我会做我的回购合并到远程?
我需要采取哪些步骤?

我已经混帐bash和混帐GUI

请指教,
感谢,

回答

0

你试过git pushgitref.org有一个很好的部分处理remote repositories

您还可以使用--help选项从命令行获得帮助。例如:

% git push --help 
GIT-PUSH(1)        Git Manual        GIT-PUSH(1) 



NAME 
     git-push - Update remote refs along with associated objects 

SYNOPSIS 
     git push [--all | --mirror | --tags] [-n | --dry-run] [--receive-pack=<git-receive-pack>] 
        [--repo=<repository>] [-f | --force] [-v | --verbose] [-u | --set-upstream] 
        [<repository> [<refspec>...]] 
... 
15

你只需要确保你有推到远程存储库中的权利和做

git push origin master 

或简单地

git push 
3

git push

git push server_name master

应该做的伎俩,你已经提交后,以本地资源库。