5344
5432
1万
管理员
本站资源如失效,请点击反馈!
git
$ git clone
$ git clone https://github.com/jquery/jquery.git
$ git clone http://example.com/path/to/repo.git/$ git clone ssh://example.com/path/to/repo.git/$ git clone git://example.com/path/to/repo.git/$ git clone /opt/git/project.git $ git clone file:///opt/git/project.git$ git clone ftp://example.com/path/to/repo.git/$ git clone rsync://example.com/path/to/repo.git/
$ git clone [user@]example.com:path/to/repo.git/
$ git remoteorigin
$ git remote -vorigin git@github.com:jquery/jquery.git (fetch)origin git@github.com:jquery/jquery.git (push)
$ git clone -o jQuery https://github.com/jquery/jquery.git$ git remotejQuery
$ git remote show
$ git remote add
$ git remote rm
$ git remote rename
$ git fetch
$ git fetch origin master
$ git branch -rorigin/master$ git branch -a* master remotes/origin/master
$ git checkout -b newBrach origin/master
$ git merge origin/master# 或者$ git rebase origin/master
$ git pull :
$ git pull origin next:master
$ git pull origin next
$ git fetch origin$ git merge origin/next
git branch --set-upstream master origin/next
$ git pull origin
$ git pull
$ git pull --rebase :
$ git pull -p# 等同于下面的命令$ git fetch --prune origin $ git fetch -p
$ git push :
$ git push origin master
$ git push origin :master# 等同于$ git push origin --delete master
$ git push origin
$ git push
$ git push -u origin master
$ git config --global push.default matching# 或者$ git config --global push.default simple
$ git push --all origin
$ git push --force origin
$ git push origin --tags
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|飞雪团队
GMT+8, 2024-11-24 06:58 , Processed in 0.069917 second(s), 24 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.