Git工具提交github.com

打开 Git Bash,开始键入各种配置信息:

git config --global user.name "You Name"
git config --global user.email yourmail@server.com

在本地创建项目文件,在 Bash 下键入一下代码: 

mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:youusername/test.git
git push -u origin master

 

posted @ 2017-09-02 03:56  爱吃醋的工程师  阅读(148)  评论(0编辑  收藏  举报