# node留言板 **Repository Path**: gitcxx/node_message_board ## Basic Information - **Project Name**: node留言板 - **Description**: 学习node 第一天 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-02 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 将项目托管到码云上 1. 提交到仓库 `git init` 2. 将所有的文件提交到仓库中 `git add .` 3. 可以查看当前的文件状态 (所有文件名变成绿色) `git status` 4. 提交到暂存区 仓库中 `git commit -m "输入的文字,提交的说明信息"` + 这时候`git status`查看状态,已经提示 On branch master 有主分支 + 这只是把本地的项目存放到本地的 git 上了,还需要连接码云的仓库 5. 在码云上创建仓库项目 + 第一部分 - Git 全局设置 1. git config --global user.name "说过好好的" 2. git config --global user.email "1767563204@qq.com" 第一次创建需要复制代码到cmd 中设置用户名和密码,以后就不需要了 + 第二部分 - 创建 git 仓库 1. 我们已经将项目创建好了存在我们本地的 git 上了,前面的1-4步骤,这里可直接跳过 + 第三部分 - 已有项目? - 依次执行代码 1. git remote add origin https://gitee.com/gitcxx/node_message_board.git 2. git push -u origin master 3. 成功提示 `Compressing objects: 100% (97/97), done. ` 6. 这时候可以看到码云上的代码了 ###### 使用VScode 自动提交 1. 用传统方式将修改的代码上传到码云 + `git add .` + `git commit -m "提交信息"` + `git push` 2. VScode 操作 + 点击树 + 在文本框输入提交的内容 点击 √ + 找到 … 选择 push 提交成功