我怎样才能在github上传新鲜的代码? [英] How can I upload fresh code at github?

查看:139
本文介绍了我怎样才能在github上传新鲜的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含我所有编码项目的目录。



我想上传(正确的术语?)它到 GitHub 使用命令行。



我已经看过旧问题



我知道如何克隆一个现有的项目,以及如何在进行任何更改后推送它。



但是在这种情况下,我想创建一个新项目并添加文件。



如何使用命令行来完成此操作?

解决方案

  git init 
git add。
git commit -m初始提交

在此之后,创建一个新的GitHub存储库并按照屏幕上的说明操作。

I have a directory with all my coding projects.

I want to upload (correct terminology?) it to GitHub using the command line.

I have already looked at Old question.

I know how to clone an existing project, and how to push it after making any changes.

But in this case, I want to make a new project and add files to that.

How can I accomplish this using the command line?

解决方案

git init
git add .
git commit -m "Initial commit"

After this, make a new GitHub repository and follow on-screen instructions.

这篇关于我怎样才能在github上传新鲜的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆