Skip to content

Latest commit

 

History

History
78 lines (36 loc) · 1.31 KB

git.md

File metadata and controls

78 lines (36 loc) · 1.31 KB

Linux 下命令行Git的使用

入门

在github上建立一个工程后,会有一个入门的提示

…or create a new repository on the command line

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

…or push an existing repository from the command line

git remote add origin https://github.com/fanhualei/antDesignPro_study.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.

如何解决每次都要输入密码的问题

git remote rm origin 
git remote add origin https://fanhualei:ma123@github.com/fanhualei/antDesignPro_study.git

常用操作

git add ./doc
git add ./doc/imgs/

git commit -m "send commit"

git commit ./doc/*.* -m "send commit"

git push -u origin master

sudo sh /opt/WebStorm-2018.2/bin/webstorm.sh