Category: Git

0

error: pathspec did not match any file(s) known to git

Have you encountered the following error while checking out a branch. error: pathspec ‘foo’ did not match any file(s) known to git. Solution: git fetch It will synchronizes your local repository with the remote...

0

git stash changes and apply to new branch

Save current changes to the stash git stash Checkout the branch where you want to apply the changes git checkout -b <branch_name> See the files which are modified in the stash. git stash show...