Pushing from local repository to GitHub hosted remote

前端 未结 5 479
我在风中等你
我在风中等你 2020-11-28 17:57

I created a local repository of my Visual Studio 2010 solution folder using Git GUI on my dev machine. I then created a remote repository in my GitHub account. Now, I am loo

5条回答
  •  独厮守ぢ
    2020-11-28 18:08

    Subversion implicitly has the remote repository associated with it at all times. Git, on the other hand, allows many "remotes", each of which represents a single remote place you can push to or pull from.

    You need to add a remote for the GitHub repository to your local repository, then use git push ${remote} or git pull ${remote} to push and pull respectively - or the GUI equivalents.

    Pro Git discusses remotes here: http://git-scm.com/book/ch2-5.html

    The GitHub help also discusses them in a more "task-focused" way here: http://help.github.com/remotes/

    Once you have associated the two you will be able to push or pull branches.

提交回复
热议问题