如何提交远程git存储库 [英] How to commit to remote git repository
问题描述
我是git的新手。
我已经做了一个远程回购的克隆,如下所示: git clone https://myusername@something.com/repo.git
然后我做了
git checkout master
进行了一些更改并将这些更改提交到我的本地存储库中,如下所示。
git add。
git commit -mmy changes
现在我必须推这些更改到远程存储库。
我不知道该怎么做。
我会将我的仓库合并到远程仓库吗?
我需要采取哪些步骤?
我有git bash和git gui
请指教,
谢谢,
origin $> c $ c>是远程存储库的默认名称(别名), master
是远程分支您希望将更改推送到。
您可能还想查看以下内容:
I am new to git.
I have done a clone of remote repo as follows
git clone https://myusername@something.com/repo.git
then I did
git checkout master
made some changes and committed these changes to my local repository like below..
git add .
git commit -m "my changes"
Now I have to push these changes to the remote repository.
I am not sure what to do.
Would I do a merge of my repo to remote ?
what steps do I need to take ?
I have git bash and git gui
please advise,
thanks,
解决方案 All You have to do is git push origin master
, where origin
is the default name (alias) of Your remote repository and master
is the remote branch You want to push Your changes to.
You may also want to check these out:
这篇关于如何提交远程git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!