Tagged: git

git 0

How to add multiple ssh keys for a single user

If you are using mul­ti­ple email addresses for dif­fer­ent ser­vices and each of them require you to enter a dif­fer­ent pub­lic key, then you need to have a pub­lic key gen­er­ated locally for each…

git 0

How to see the changes in a git stash without pop

These two com­mands will help you exam­ine your git stash with­out mess­ing with your work­ing direc­tory To see the files changed in the lat­est stash git stash show To see the changes made in the…

git 0

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

Have you encoun­tered the fol­low­ing error while check­ing out a branch. error: path­spec ‘foo’ did not match any file(s) known to git. Solu­tion: git fetch It will syn­chro­nizes your local repos­i­tory with the remote…

ubuntu-icon 0

How to create a permanent “alias”?

Fol­low three sim­ple steps to cre­ate alias for your com­mand line. cd ls –la vi .bashrc Append your favorite alias at the bot­tom of the file. Below are some of my favorite aliases. # alias…

git 0

git stash changes and apply to new branch

Save cur­rent changes to the stash git stash Check­out the branch where you want to apply the changes git check­out –b <branch_name> See the files which are mod­i­fied in the stash. git stash show Print the…