git-fetch-not-update-my-local-repository

When your git repository deny to be updated from the origin:

http://stackoverflow.com/questions/9841433/git-fetch-not-update-my-local-repository

Advertisements

If you want to push a new local branch on your remote github repository :

 

 

$git push -u origin <local branch name>


git stash

Instead of commiting before switching a git branch, you can stash your modifications.


$ git stash

This command save the current state of developpement. You can now switch to another branch.


$ git stash apply

Restore from your last stash

you can also inspect all your stashed state with


$ git stash list

or


$ git stash show