1. 程式人生 > >git爬坑之建立github專案

git爬坑之建立github專案

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ git add README.md

warning: LF will be replaced by CRLF in README.md.

The file will have its original line endings in your working directory.

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ ^C

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ rm -rf .git

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo

$ git config --global core.autocrlf false

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo

$ git init

Initialized empty Git repository in D:/myGithub/topology-demo/.git/

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ git add

Nothing specified, nothing added.

Maybe you wanted to say 'git add .'?

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ git add .

 

臭豬豬@DESKTOP-296NPPH MINGW64 /d/myGithub/topology-demo (master)

$ git add README.md

 

…or create a new repository on the command line

echo "# topology-demo" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/qiufeihong2018/topology-demo.git git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/qiufeihong2018/topology-demo.git git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.