1 Star 0 Fork 0

rocket049 / documents

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
把本地初始化的GIT目录上传到托管网站.md 466 Bytes
Copy Edit Raw Blame History

#把本地初始化的GIT目录上传到托管网站

##一、远程新建一个空的git项目:

在网站上新建一个GIT项目,不要初始化。 假设地址是:https://gitee.com/rocket049/vd1.git

##二、本地初始化一个git目录后:

执行下面的命令:

git init
touch README.md
git add README.md 
git add .gitignore 
git commit -m "first commit"
git remote add origin https://gitee.com/rocket049/vd1.git
git push -u origin master
1
https://gitee.com/rocket049/documents.git
git@gitee.com:rocket049/documents.git
rocket049
documents
documents
master

Search