github分支创建合并
Before I start updating my local clone of the MooTools More or Core libraries, I need to update to the most current version on GitHub. Call me lazy, but I'm tired of typing the commands lines into msysgit all the time. I've created a batch file that does the work for me.
在开始更新MooTools More或Core库的本地克隆之前,我需要更新到GitHub上的最新版本。 叫我懒惰,但是我讨厌一直在msysgit中输入命令行。 我已经创建了一个批处理文件来为我工作。
批处理脚本 (The Batch Script)
git fetch git://github.com/mootools/mootools-core.git master:coco
git merge coco
What I'm doing is:
我正在做的是:
- Going out to GitHub, grabbing the current "Core", and putting it into a branch called "coco." 前往GitHub,获取当前的“ Core”,并将其放入名为“ coco”的分支中。
- Merging it with my current local copy. 将其与我当前的本地副本合并。
Pushing it to my GitHub account.将其推送到我的GitHub帐户。
I know that's not a lot to type, but this script lets me move things along a tiny bit faster.
The "push" updates my repository at GitHub right away too
. It's also probably important to mention that my operating system is Windows XP.
我知道键入的内容不多,但是此脚本使我可以更快地移动内容。
“推送”也立即更新了我在GitHub上的存储库
。 可能重要的是要提到我的操作系统是Windows XP。
github分支创建合并