User Tools

Site Tools


software:git

This is an old revision of the document!


git

Just your ordinary overly complicated* version control system.

How to undo stuff

How to revert a single file

git status

And near the top of the output are instructions.

How to revert changes made to local copy

Warning: there is no confirmation prompt! Don't type this unless you really mean bring your local copy back in sync with the current branch!

git checkout .

How to unstage a staged file or directory

From stackoverflow.

  git reset <path-to-file-or-dir>

*Compared to other version control systems.

software/git.1523406908.txt.gz · Last modified: 2018/04/10 17:35 by dave