SmartGit is a graphical front-end for the distributed version control system Git and runs on Windows, Mac OS X and Linux. SmartGit helps Git beginners getting started quickly and makes advanced users more productive with its efficient user interface to Git the most powerful DVCS today. Open the SmartGit preferences, page 'Authentication' and select the Change Master Password button. There you have the possibility to.set. a new master password (forgetting all the stored information) or to.change. the master password (by entering the current master password).
4 Answers
As KindDragon's answer mentions, you can recreate master
directly at origin/master
with:
The git checkout
man page mentions:
If -B
is given, <new_branch>
is created if it doesn’t exist; otherwise, it is reset. This is the transactional equivalent of
Originally suggested:
Something like:
with step 2 being optional.
ADTCGit supports this command:
Check out the origin/master
branch and then reset master
branch there.
I think even VonC's answer has complexity compared to this option:
git automatically logs every value of a ref (through the reflog). So after you run that command, then master@{1}
refers to the previous value of master.
VonC's answer is correct, but it wastes time checkout out the old value of master into the filesystem.
If you care about orphaned objects in the repo, then you can run git gc
If you are already on master
you can do the following:
git reset --hard origin/master
It will point the local master
branch to the remote origin/master
and discard any modifications in the working dir.