phoenix
phoenix

Reputation: 617

Merging local git repo changes to a already created github repository

I am new to git. We are converting our project from svn to git.

We have a github. We started converting demo projects. I started the conversion process like this

  1. Converted svn project to git using git svn clone command in my MAC
  2. So I got a local repo now with all svn log
  3. Created a repo in github. I want to upload my local git repository changes to github repository

How do I do that? Or else please suggest me if there is a different way

Upvotes: 1

Views: 115

Answers (1)

Etienne Laurin
Etienne Laurin

Reputation: 7184

Issuing these commands in your local repository will populate your new github project:

git remote add origin https://github.com/user/repo
git push origin master

Replace user/repo with your github username and the project name. You will be asked for your github username and password.

Upvotes: 1

Related Questions