gayhub

作者: 黑色泡沫_bccb | 来源:发表于2018-06-07 10:49 被阅读0次

99216@DESKTOP-S65O4CO MINGW64 ~

$ git config --global user.name "l992164633"

99216@DESKTOP-S65O4CO MINGW64 ~

$ git config --global user.email "992164633@qq.com"

注册邮箱

99216@DESKTOP-S65O4CO MINGW64 ~

$ cd ~/.ssh

99216@DESKTOP-S65O4CO MINGW64 ~/.ssh

$ ls

id_rsa  id_rsa.pub

查看是否有密匙

99216@DESKTOP-S65O4CO MINGW64 ~/.ssh

$ cd e:demo

打开E盘的这个文件

99216@DESKTOP-S65O4CO MINGW64 /e/demo

$ git init

Initialized empty Git repository in E:/demo/.git/

99216@DESKTOP-S65O4CO MINGW64 /e/demo (master)

$  git add .

添加所有文件 注意这里有个点哈

99216@DESKTOP-S65O4CO MINGW64 /e/demo (master)

$ git commit -m "提交文件"

 双引号内是提交注释。

[master (root-commit) 0e0636f] 提交文件

 1 file changed, 1 insertion(+)

 create mode 100644 red.txt

99216@DESKTOP-S65O4CO MINGW64 /e/demo (master)

$ git remote rm origin

99216@DESKTOP-S65O4CO MINGW64 /e/demo (master)

$ git remote add origin https://github.com/l992164633/Test.git

添加到github远程仓库 直接进行上一句可能会报错 所以先执行一半,再来后面的

99216@DESKTOP-S65O4CO MINGW64 /e/demo (master)

$ git push -u origin master

Counting objects: 3, done.

Writing objects: 100% (3/3), 214 bytes | 214.00 KiB/s, done.

Total 3 (delta 0), reused 0 (delta 0)

To https://github.com/l992164633/Test.git

 * [new branch]      master -> master

上传本地文件

Branch 'master' set up to track remote branch 'master' from 'origin'.

稳了

相关文章

网友评论

      本文标题:gayhub

      本文链接:https://www.haomeiwen.com/subject/remesftx.html