gpt4 book ai didi

git - 在 BitBucket SourceTree 中 checkout 、获取和 pull

转载 作者:IT王子 更新时间:2023-10-29 00:59:47 26 4
gpt4 key购买 nike

我正在使用 BitBucket 来托管我们的项目。与此同时,我正在使用他们的 SourceTree 进行提交和此类目的。我对 SourceTree 界面中可用的 CheckoutFetchPull 选项及其用法感到有点困惑。熟悉此工具的人可以解释一下 SourceTree 中可用的这些选项的用法吗?

最佳答案

使用 Atlassian's Git tutorial (链接已更新)作为引用。

Git checkout :

The git checkout command lets you navigate between the branches created by git branch. Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that branch. Think of it as a way to select which line of development you’re working on.

Source: https://www.atlassian.com/git/tutorials/using-branches#git-checkout

Git pull :

You can think of git pull as Git's version of svn update. It’s an easy way to synchronize your local repository with upstream changes. The following diagram explains each step of the pulling process.

Source: https://www.atlassian.com/git/tutorials/syncing#git-pull

Git 获取:

The git fetch command imports commits from a remote repository into your local repo. The resulting commits are stored as remote branches instead of the normal local branches that we’ve been working with. This gives you a chance to review changes before integrating them into your copy of the project.

Source: https://www.atlassian.com/git/tutorials/syncing#git-fetch

关于git - 在 BitBucket SourceTree 中 checkout 、获取和 pull ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21595140/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com