Skip to content

Commit

Permalink
Update git docs
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Nov 12, 2018
1 parent 50fc7bc commit 877598a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/machine_learning/tips.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ https://sdaps.org/Documentation/Tutorial/example.tex
The `example.tif` file is here:

https://sdaps.org/Documentation/Tutorial/example.tif

Scanning:

https://sdaps.org/Documentation/Scanning/
36 changes: 36 additions & 0 deletions src/vcs/git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -715,3 +715,39 @@ Abort the merge
# git merge --abort
Track remote branch that doesn't exist on local
-----------------------------------------------

Sometimes remote branch is not tracked on local, and there is no the branch name on the local:

Related error: Git: cannot checkout branch - error: pathspec did not match any file(s) known to git


.. code-block:: bash
$ git branch
master
dev
$ git branch -a
remotes/origin/master
remotes/origin/dev
remotes/origin/rc
.. code-block:: bash
$ git remote update
$ git fetch --all
$ git checkout --track remotes/origin/rc
.. code-block:: bash
$ git branch
master
rc
dev

0 comments on commit 877598a

Please sign in to comment.