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 looking for how to push my local repository to the remote repository.
In SVN I can just commit using TortoiseSVN and changes are pushed to the remote repository. I don’t see any tool like that available for Git.
How do I push my local repo to my remote repo on GitHub?
You push your local repository to the remote repository using the
git pushcommand after first establishing a relationship between the two with thegit remote add [alias] [url]command. If you visit your Github repository, it will show you the URL to use for pushing. You’ll first enter something like:Unless you started by running
git cloneagainst the remote repository, in which case this step has been done for you already.And after that, you’ll type:
After your first push, you can simply type:
when you want to update the remote repository in the future.