我需要在GitHub for Windows应用程序中做些什么才能及时了解对GitHub上托管的项目或存储库所做的更改?
我很可能不会编辑,但确实想要了解并合并对项目所做的更改.
当我在桌面上克隆时,使用GitHub for Windows GUI,我有一个选项是"同步分支",它被定义为"在服务器上共享你的本地提交并从其他人那里下拉变化".我与谁分享我的本地提交?它是起源吗?而且,我的变化是"拉下来"?
看起来GUI中的"同步分支"选项可以同时执行(无论我是否愿意).
所以我几天前开始使用Git.(派对很晚 - 不要责骂:)).真正开始熟悉基本命令,想法和工作流程.然而,子模块真的让我的大脑有所作为.我正在尝试为FuelPHP的GitHub贡献代码,我可以使用一些指导和提示.
我在终端中运行以下命令:
//1: clone the repository from Fuel's github.
git clone git://github.com/fuel/fuel.git
//2: move into the main fuel directory
cd fuel
//3: initilize the submodules (populate .git/config with submodule data)
git submodule init
//4: download the submodules...
git submodule update
//5: move into the core directory (which is a submodule).
cd fuel/core
//6: change branch from (*no branch) to 1.1/develop
git checkout 1.1/develop
//7: open random file in text editor + make …Run Code Online (Sandbox Code Playgroud) 我想知道如何将一个远程分支合并到另一个远程分支,并在应用合并后立即删除一个远程分支.
此致,Alexander Chernyaev.
有什么Track Remote Branch作用?还有什么意思呢configure for push/pull with origin/master?
当我表演时branch -a:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/hello
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
然后我删除了分支:
$ git branch -r -D origin/hello
Deleted remote branch origin/hello (was c0cbfd0).
Run Code Online (Sandbox Code Playgroud)
现在我明白了:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
分支"你好"已被删除.但是当我拿到:
$ git fetch
From localhost:project
* [new hello] hello -> origin/hello
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/hello
remotes/origin/master
Run Code Online (Sandbox Code Playgroud)
我很困惑.
我认为它已被删除,但它仍然存在.
假设远程br1仓库上有远程分支机构检查,master本地仓库上有分支机构.
命令1:如果我做了一个" git pull origin br1:br1"它将远程拉br1入本地br1,并显示:
9188a5d..97d4825 br1 -> br1
9188a5d..97d4825 br1 -> origin/br1
命令2:如果我只做一个" git pull",它会将远程拉br1入本地master,但它只显示以下内容:
9188a5d..97d4825 br1 -> origin/br1
我期待它也会显示" br1 -> master" 这样的东西.为什么没有表现出来?
" br1 -> br1" 是否意味着将远程拉br1入本地br1?
这是什么br1 -> origin/br1意思?
更新:在VonC的帮助下,我发现了以下内容:
git pull更新所有跟踪分支.遥控器上的br1 -> origin/br1装置br1被拉入本地跟踪分支origin/br1.
git pull origin br1:br1将远程拉br1入本地br1并进入origin/br1.然后,之后的消息意味着相同的更改集也被拉入当前签出的分支(消息是 …
因此,我使用 Jira 创建了一个分支,并在本地系统上检查了该分支。现在我正在尝试在本地系统上执行 git pull 但收到此消息
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> feature/branch-name mark-violation
Run Code Online (Sandbox Code Playgroud)
我需要做什么?我看过这个链接,但我不清楚。