简体   繁体   English

将本地git repo更改合并到已创建的github存储库

[英]Merging local git repo changes to a already created github repository

I am new to git. 我是git的新手。 We are converting our project from svn to git. 我们正在将项目从svn转换为git。

We have a github. 我们有一个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 在我的MAC中使用git svn clone命令将svn项目转换为git
  2. So I got a local repo now with all svn log 所以我现在有了所有svn日志的本地仓库
  3. Created a repo in github. 在github中创建了一个仓库。 I want to upload my local git repository changes to github repository 我想将本地git存储库更改上传到github存储库

How do I do that? 我怎么做? Or else please suggest me if there is a different way 否则请建议我是否有其他方法

Issuing these commands in your local repository will populate your new github project: 在本地存储库中发出以下命令将填充新的github项目:

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

Replace user/repo with your github username and the project name. 用您的github用户名和项目名称替换user/repo You will be asked for your github username and password. 系统将要求您输入github用户名和密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM