learnGitBranching | interactive git visualization and tutorial | Learning library
kandi X-RAY | learnGitBranching Summary
kandi X-RAY | learnGitBranching Summary
LearnGitBranching is a git repository visualizer, sandbox, and a series of educational tutorials and challenges. Its primary purpose is to help developers understand git through the power of visualization (something that's absent when working on the command line). This is achieved through a game with different levels to get acquainted with the different git commands.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Creates a new GitVisual visualization .
- Convert hueString to HSLString
- Initialize Command UI .
- Return a mock factory
- Creates a new engine .
- Gets the locale for a given header .
- returns a mock tree visualization
- git shim .
- Detect zoom level
- A command parser options .
learnGitBranching Key Features
learnGitBranching Examples and Code Snippets
Community Discussions
Trending Discussions on learnGitBranching
QUESTION
I was practicing git in the following sandbox: https://learngitbranching.js.org/?NODEMO
I ran two sets of commands in two separate sessions. The first set of commands in order is as follows:
...ANSWER
Answered 2021-Aug-27 at 02:44It seems that git pull does not update all the remote tracking branches.
This can happen, yes. It does happen when:
git pull
runsgit fetch origin master
, for instance, andgit fetch origin master
therefore only updatesorigin/master
.
Futhermore, in Git versions predating 1.8.4, some git fetch
operations do not update any remote-tracking names at all. Here the git fetch origin master
has no effect on origin/master
.
Besides these, we have several other special cases:
- If
git pull
is configured or told to rungit rebase
, the second command it uses isgit rebase
, notgit merge
. The obvious substitute is thusgit fetch
followed bygit rebase
. Some specifics here are even-more Git version dependent, though: in particular,git pull
implemented--fork-point
mode for rebase beforegit rebase --fork-point
existed (the actual--fork-point
option first occurring in Git 1.9, butgit pull
doing special work since some 1.6 version—I looked up the precise version once, but these days the oldest Git in use seems to be for CentOS, which includes some Git 1.7 versions in some distributions). - There is one very special case: if you create an empty repository, add a remote, and run
git pull
, there is no existing branch yet. (You can trigger this case again later using orphan branches.) In this case instead of either merge or rebase,git pull
runs a specializedgit checkout
.
The upstream setting of a branch matters here, depending on what arguments you pass to git pull
or to the fetch and second commands. In general these mostly end up working the same way, except for the caveat you noted about some remote-tracking names sometimes not getting updated.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install learnGitBranching
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page