`

git checkout remote branch

    博客分类:
  • Git
 
阅读更多

if you would like to checkout the branch groups, you can simply say this in recent versions of Git:

 

git fetch origin

git checkout groups

This will automatically track origin/groups from a local branch groups.

 

In older Git versions you need to say this:

 

git fetch origin

git checkout --track origin/groups

分享到:
评论

相关推荐

    git指令快速查询-代码管理工具

    git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git commit -am "init" 提交并且加注释 git remote add origin git@192....

    Git-Cheatsheet:方便的 Git 备忘单

    git checkout <branch> -> git checkout dev 切换到新分支 git checkout -b <branch> -> git checkout -b feature-branch 将本地分支推送到远程 git push -u origin <branch> -> git push -u origin feature-...

    100个Git常用命令及用法-IT老卢.pdf

    5.git push <remote> <branch>:将本地分支推送到远程仓库 分支管理 6.git branch:列出所有本地分支 7.git branch <name>:创建一个新的本地分支 8.git checkout <name>:切换到指定分支 9.git merge <branch>:将...

    git 视频教程

    git视频教程.4.4.Git 命令 - git checkout.mp4 git视频教程.4.5.Git 命令 - git merge.mp4 git视频教程.4.6.Git 命令 - git merge、git mergetool.mp4 git视频教程.4.7.Git 命令 - git log、git stash、git tag.mp4 ...

    my-repo-cmdline:从cmd行

    git remote -v $ git pull $ git push -u origin master分支git checkout master git branch pr1 git checkout pr1 编辑档案git add somefile1 somefile2 git commit git push origin pr1 git checkout master同步...

    DC-Uni

    这是有关DC宇宙漫画人物的资料库人物海王超人git克隆git添加git commit -m“ ” git pull git推git init git添加git commit -m“ ” git branch -M主git remote add origin <URL> git push -u origin主git添加git ...

    git-branch-deploy:为部署设置存储库分支

    它在您的路径中运行以下命令: git resetgit checkout .git clean -dfgit checkout mastergit pullgit fetch some-remotegit merge --no-commit --no-ff some-remote/fix-issue-branchgit reset在测试环境中设置...

    git-intro:希腊文Git简介

    git branch feature-a git checkout feature-a 我们做出改变。 git add file_1 file_2 dir/file_3 git commit -m 'Message of what changed' git push origin feature-a 转到GitHub并执行拉取请求 叉父存储库...

    brandnewproject:这是一个练习git的全新项目

    提交文件git commit -m " Commit message " 检查当前分支git branch # check current branch git branch -a # show all branches 添加一个远程仓库git remote add < name> < url> 推送到远程存储库git push -u ...

    DynamoDBTest

    如何在git repo中添加现有项目git init git添加git commit -m“我的第一次提交” git branch-M主git remote添加起点远程git remote -v git push -f origin main(而不是master) 如果错误地将代码添加到master,请...

    Git-2.21.0-64-bit.zip

    advancing the current history" out of the single "git checkout" command. * "git branch --list" learned to always output the detached HEAD as the first item (when the HEAD is detached, of course),...

    java7源码-fly:飞

    java7 源码 fly waht is the funny thing you doing... git操作参考: 1.git clone新项目 git ...git ...github.com/hongjinlong/fly.git ...checkout Branch1 将新分支发布在github上: git push origin Bran

    GithubLesson

    git checkout my-branch-name 添加特定文件: git add main.js 添加一系列具有相同扩展名的文件: git add "*.txt" 获取最近一次提交的历史记录: git log 列出更改后的跟踪文件所产生的差异列表,或比较您的...

    school-api-old:学校API

    b feature_x 将分支推送到您的远程存储库git push起源切换回主人git checkout主然后再次删除该分支git branch -d Feature_x 删除旧的原点并读取正确的原点: git remote删除原点git remote添加原点更新现有的远程...

    learnmongodb:学习MongoDB所需的一切

    git checkout master git branch --set-upstream-to=origin/master 推动新变化 git add . && git commit -am 'push' && git push origin master MongoDB的 样本数据集可 码头工人 重建镜像: docker build -t ...

    visualizing-git:可视化常见的Git操作如何影响提交图

    可视化Git Git是一个非常强大的工具-它可能会令人困惑。...clear =清除历史记录窗格并重置可视化可用的Git命令: git branchgit checkoutgit cherry_pickgit commitgit fetchgit loggit mergegit pullg

    git-better:git 更擅长 git

    git-更好git 更擅长 git —— for remote in ` git branch -r ` ;... do git checkout $remote ; git pull ; done安装安装节点依赖$ npm install 启动节点服务器$ npm start 查看您的项目该死的http://localhost:5000

    YoungCha

    OWN_BRANCH# examplegit checkout -b TestBranchgit checkout main拉:从github获取文件git pull $REMOTE $BRANCH# examplegit pull origin main添加并提交并推送git statusgit add $FILE_NAME# add allgit add .git...

    git-and-linux-Commands:在git和ubuntu(linux)使用过程中通过示例获取特定操作,git概念,git错误及其修复的linux命令

    Git概念和Linux命令附有我在专案期间使用的范例和参考资料\...不相关的历史记录- 修复示例:在此处将Implementation_Data_Structures-branch与我们的母版合并git checkout Implementation_Data_Structures git commit

    EventShare:回购专用项目工作2021 ITS BIT

    项目工作2021 ITS BIT EVENTSHARE-每24小时的佣金咨询 按原始安装量安装的仓库: git clone git@github.com:EventShare24/EventShare.git git remote add origin git@github.... git checkout -b <br

Global site tag (gtag.js) - Google Analytics