git初始化操作:从空目录或者已存在的项目

来源:互联网 发布:51单片机下载器 编辑:程序博客网 时间:2024/06/05 17:56

Command line instructions

1. Git global setup

git config --global user.name "username"git config --global user.email "email@email.com"

2. Create a new repository

git clone git@git.com:ppp.gitcd pyspidertouch README.mdgit add README.mdgit commit -m "add README"git push -u origin master

3. Existing folder or Git repository

cd existing_foldergit initgit remote add origin git@git.com:ppp.gitgit add .git commitgit push -u origin master
原创粉丝点击