Posted on 2019-03-02 14:54
宋鹏 阅读(1583)
评论(0) 编辑 收藏 引用 所属分类:
Git
clone:git clone https://github.com/songpeng22/HelloWorld.git
clone with username and password:
git clone https://username:password@github.com/username/repository.git.
clone old version:
git clone git://sourceware.org/git/glibc.git
cd glibc
git checkout glibc-2.28
clone with tagname:
git clone http://anongit.freedesktop.org/git/mesa/drm.gitcd drm
git checkout -b libdrm-2.4.102 libdrm-2.4.102
or
git checkout tags/tagname -b <branch>
like above:
git checkout tags/libdrm-2.4.102 -b libdrm-2.4.102
config:
git config --global user.email "songpeng24@msn.com"git config --global user.name 'songpeng22'
config status:
git config -l
project Status:
git status
在github上创建:
https://github.com/songpeng22/CMake_QT_03_Qml-Standard.gitgit init
git add README.md
git add *
git commit -m "first commit"
git remote add origin https://github.com/songpeng22/CMake_QT_03_Qml-Standard.git
git push -u origin master