![]() This means that, if a tracking connection has been set up, you can simply omit naming the remote repository and branch: $ git pull This configuration provides default values so that the pull command already knows where to pull from without any additional options. In most cases, your local HEAD branch will already have a proper tracking connection set up with a remote branch. $ git fetch origin Using the Plain git pull Command If you don't want to integrate new changes directly, then you can instead use git fetch: this will only download new changes, but leave your HEAD branch and working copy files untouched. By default, this integration will happen through a "merge", but you can also choose a "rebase": $ git pull origin master -rebase It will also directly integrate them into your local HEAD branch. Using git pull (and git pull origin master is no exception) will not only download new changes from the remote repository.
0 Comments
Leave a Reply. |