我在本地机器上创建了一个包含Web API,SQL Server代码和C#MVC代码的小项目。 如何在GitHub存储库(我刚创建一个帐户)上加载该代码以向其他人展示? 有人可以指导我吗?如何在GitHub中加载项目
-1
A
回答
0
您需要安装的Git和获取去,创造github上一个新项目,然后在你的项目文件夹中运行:
git init
git remote add origin "[email protected]:my-username/my-repo.git"
git add .
git commit -m"Initial Commit"
git push origin master
而且你的代码应该是在那里
0
转到GitHub上.com到您的存储库部分。 创建new repository there。
使用后在右上角或与漂亮的绿色按钮做克隆从那里
git clone https://github.com/<your_nick>/<your_repository>.git
(不要忘了克隆前,您的计算机上安装git client)
如果你不熟悉的git命令 - 您可以使用SourceThree作为客户端。
相关问题
- 1. 从github加载项目
- 2. 如何在GitHub中添加目录?
- 3. 如何阅读Github项目?
- 4. 如何在一个Eclipse项目中使用多个GitHub项目?
- 5. 如何在flex builder中加载/加载flexlib项目源代码?
- 6. 如何在Github上贡献项目
- 7. 如何使用GitHub项目中的MqttClientSingletonClass项目MosQtitto?
- 8. 如何在窗口加载时加载组合框项目
- 9. 将iPhone项目添加到现有的Github项目中
- 10. 将GitHub Java项目下载到Netbeans
- 11. 如何使用github标签为我的项目创建下载?
- 12. 如何从github下载的xcode中打开已存在的项目?
- 13. 如何在Github中将多个iOS项目添加到单个存储库中?
- 14. 如何在Eclipse中将Github库添加到我的Android项目中作为JAR?
- 15. 在ViewHolderAdapter上加载项目
- 16. 如何在DataGrid Silverlight中的comobox中加载项目?
- 17. 如何在js项目中加载haxe中的txt文件?
- 18. 如何将github项目导入Android Studio?
- 19. github如何找出项目的语言?
- 20. 如何推动angular-seed项目到github?
- 21. 如何指向Eclipse的github项目
- 22. 如何将Android项目推送到Github?
- 23. 如何开始使用github项目?
- 24. 如何编译Github项目(Windows)
- 25. 如何从github项目获取jar?
- 26. 如何导入Github上项目到NetBeans
- 27. 如何使用这个项目从GitHub
- 28. 如何在Xamarin中卸载项目?
- 29. 如何在android项目中下载xml?
- 30. 如何在我的github项目中使用pip3或github源码进行openshift?
https://help.github.com/articles/set-up-git/ –
简版:'git init; git add。; git commit -m“初始提交。”; git remote add origin [email protected]:my-username/my-repo.git; git push origin master'。请注意,这会在您的回购中提交任何敏感信息。 – CollinD