# data_share **Repository Path**: mosquitosun/data_share ## Basic Information - **Project Name**: data_share - **Description**: 论文资料分享.1111 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-23 - **Last Updated**: 2022-10-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 新建文件在本地: ```shell touch a.txt ``` 使用git add命令将文件添加到本地仓库的提交缓存 ```shell git add a.txt ``` 这个时候还不算添加到了本地仓库,我们还需要使用git commit命令为其添加修改的描述信息 注意在使用git commit时我们只需要简单描述一下我们做了什么,不要像写注释那样写一大堆,不然将来在回滚代码或者查看历史版本时,很难审阅。 我们需要使用-m命令来简写描述我们的信息,如果不使用-m,会调用终端的注释编辑器让你输入描述信息,但是不建议使用,因为注释编辑器比较难用,不舒服。 ```shell git commit -m "describe information..." ``` 我们提交了仓库,但是发现注释写错了,我们可以使用 --amend长命令选项来改写提交 ```bash git commit --amend ``` 查看提交日志: ``` git log ``` github将本地仓关联到远程仓库 ``` git remote add origin https://gitee.com/mosquitosun/data_share.git ``` 推送到远端 ``` git push -u origin master ```