Visual Studio Git本地Repos和GitHub远程Repos互操作

近期准备将一个项目开源到GitHub中,N-Sharding,.Net版本的分库分表数据访问框架。中间遇到了点小问题,整理了一下。

1. GitHub上Create New Repos

2. 代码Check In到本地Git Repos

3. Push到GitHub远程Repos

一、GitHub上Create New Repos:N-Sharding

Visual Studio Git本地Repos和GitHub远程Repos互操作

2. 代码Check In到本地Git Repos 

Visual Studio Git本地Repos和GitHub远程Repos互操作

 

3. Push到GitHub远程Repos

Visual Studio Git本地Repos和GitHub远程Repos互操作

推送提示一下错误:

将分支推送到远程存储库时遇到错误: rejected Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes before pushing again. Error: failed to push some refs to 'https://github.com/*****/N-Sharding.git' Error: hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpxwdf.html