posts - 54, comments - 32, trackbacks - 0, articles - 0

Git第一阶段:入门操作(check in riles/checkout files)

Posted on 2019-03-02 14:54 宋鹏 阅读(1528) 评论(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.git
cd 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.git
git 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



只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理