假设本地git已安装好。。。
如果第一次使用git,请在终端中运行此命令。
git config --global user.name "xxx"
git config --global user.email "xxx@xx.com"
如果要简单地克隆此空存储库,请在终端中运行此命令。
git clone http://xxxx.git
如果你代码已经准备好推送到仓库,请在终端中执行该命令
cd existing-project
git init //初始化项目,会生成一个.git隐藏文件
git add --all //把当前目录下所有文件添加到缓冲区
git commit -m "Initial Commit" //提交到本地仓库
git remote add origin http://xxxx.git //添加远程和本地仓库的映射
git push -u origin master //推送到远程仓库
如果你的代码已经由Git跟踪,然后设置这个仓库作为你的“origin”推送。
cd existing-project
git remote set-url origin http://xxxx.git
git push -u origin --all
git push origin --tags
fork
转载于:https://www.cnblogs.com/jvStarBlog/p/10883712.html
相关资源:垃圾分类数据集及代码