Say Im in a Git repository. I delete a file and commit that change. I continue working and make some more commits. Then, I find I need to restore that file. I know I. Git Quick Guide Learn Git A Fast and Flexible Version Control Tool in simple and easy steps starting from its installation, project creation, file addition. A few of my Git tricks, tips and workflows. Tune Up Utilities 2011 With Serial Final Activated You. By Markus Wein In Git 4929 Words Note A german translation is available here. This post is based on a talk I gave. Git checkout ltbranch To prepare for working on ltbranch, switch to it by updating the index and the files in the working tree, and by pointing HEAD at the branch. Inno Setup 5 Revision History. Inno Setup 5. Revision History. Copyright 1. 99. Jordan Russell. All rights reserved. Portions Copyright 2. Martijn Laan. All rights reserved. For conditions of distribution and use, see LICENSE. TXT. 5. 5. 9 2. 01. To further help protect installers against potential DLL preloading attacks, SetupUninstall now calls Set. Default. Dll. Directories if available to remove the application directory from the DLL search order. Description Command Commit them on the local branch. My descriptive message Commit them on another branch, no checkout conflicts. You can always build your own, but you should probably try going to sleep a bit earlier before constructing an elaborate contraption designed to wake you up. If Set. Default. Dll. Directories is not available or cannot be called, it now additionally preloads a set of system DLLs known to be loaded unsafely by older or unpatched versions of Windows. Change in default behavior the Output. Base. File. Name Setup section directive now defaults to mysetup instead of setup. Setting it back to setup is not recommended all executables named setup. Windows application compatibility to load additional DLLs, such as version. These DLLs are loaded unsafely by Windows and can be hijacked. If you do so anyway, the compiler will issue a warning. Added new Files section flags sign and signonce. Instructs the compiler to digitally sign the original source files before storing them. Git Restore Deleted File Before Commit' title='Git Restore Deleted File Before Commit' />Ignored if Setup section directive Sign. Tool is not set. Inno Setups own compiler files are now also signed. Setup section directive LZMADictionary. Size now allows the LZMA dictionary size to be increased up to 1 GB from the previous maximum of 2. MB. Review the memory requirements listed in the Compression topic before using Improved the auto retry feature of the Files section it now also retries if Move. File failed even if the preceding Delete. File succeeded. Additionally, if Move. File keeps failing it will now register the file to be replaced on restart if the restartreplace Files section flag is used instead of displaying an error message. The value of the App. Version directive is now not only used to set the Major. Version and Minor. Version values in the Uninstall registry key when possible but also used to set the Version. Major and Version. Minor values as required by newer versions of the Windows App Certification Kit. Inno Setup Preprocessor ISPP changes. Added new function Remove. File. Ext. Documented predefined variable ISPPCCINVOKED. Console mode compiler ISCC change Added new command line parameter J. Can be used to include additional files. Unicode Inno Setup Added official Armenian translation. Minor tweaks. 5. 5. Changes in default behavior As recommended by Microsofts desktop applications guideline, Disable. Welcome. Page now defaults to yes. Additionally Disable. Dir. Page and Disable. Program. Group. Page now default to auto. The defaults in all previous versions were no. The Setup and Uninstall programs are now marked as DEP and ASLR compatible. This can be disabled by setting the new DEPCompatible and ASLRCompatible Setup section directives to no. Doing this for DEP compatibility might be needed if youre using a buggy third party DLL from Code, like isxdl. The Compiler IDEs New Script Wizard now offers to create a shortcut to the main executable in the common Start Menu Programs folder instead of creating a new Start Menu folder especially for the application. This option is enabled by default and is recommended by Microsoft unless you install a suite of applications rather than a single application. The Wizard. Image. File and Wizard. Small. Image. File Setup section directives now support 3. Use the new Wizard. Image. Alpha. Format Setup section directive to specify if the bitmap file has its red, green and blue channel values premultiplied with the alpha channel value or not. Contributed by Honza Rame via Git. Hub. The Wizard. Image. Back. Color Setup section directive is now deprecated and ignored, just like the similar Wizard. Small. Image. Back. Color directive already was. Any unused space around the wizard image is now filled with the standard window color usually white. Setup section directive Close. Applications can now be set to force. If it is, Setup will force close when closing applications. Use with care since this may cause the user to lose unsaved work. Added new command line parameters supported by Setup FORCECLOSEAPPLICATIONS and NOFORCECLOSEAPPLICATIONS. These can be used to override the Close. Applications directive. The Attribs parameter of a Files or Dir entry may now also include notcontentindexed to specify that the file or directory is not to be indexed by the content indexing service. Pascal Scripting changes. Function Reg. Query. Binary. Value can now be used to query any type of registry value and not just REGBINARY type values. Class TBitmap. Image now supports 3. Make sure to set the Bitmap. Alpha. Format property before loading the bitmap file. Added new functions Get. Open. File. Name. Multi and Select. Disk. Added C version of the My. Dll. dll example DLL showing how to call. NET assemblies from Code without requiring COM or other DLLs. Uses Unmanaged Exports by Robert Giesecke. Unicode Code based on Rem. Objects Pascal Script Git commit bfc. Minor tweaks. 5. 5. Added the Windows 1. Inno Setup. This enables any check for the operating system version to get the real version number 1. Windows 8. 1 6. 3. Added new Setup section directive Sign. Tool. Retry. Count, which defaults to 2. Specifies the number of times the Setup Compiler should automatically retry digital signing on any errors. Added new Setup section directive Setup. Mutex. Can be used to prevent Setup from running while Setup is already running. Fix Console mode compiler ISCC change Renamed DO and EO command line parameters to O and O to avoid possible conflicts with D. Pascal Scripting change Unicode Inno Setup Added new functions Var. Is. Clear and Unpin. Shell. Link. Inno Setup Preprocessor ISPP change Added new function Force. Directories. Unicode Code based on Rem. Objects Pascal Script Git commit db. Various documentation improvements. Contributed by jogo via Git. Hub. Minor tweaks. LOG Now logs INI entries. Also improved logging of icon entries. Added new Setup section directive Output, which defaults to yes. If set to no the Setup Compiler will only check the script for errors and skip creating setup files. Console mode compiler ISCC changes. Added new command line parameters DO and EO. These can be used to disable or enable output, overriding the Output directive. Added new command line parameter Qp. Can be used to enable quiet compile while still displaying progress. Contributed by Kng. Str via Git. Hub. ISCC now automatically specifies any Sign Tools configured using the IDE, eliminating the need to specify these using the S command line parameter. Also contributed by Kng. Str via Git. Hub. Pascal Scripting changes. Added new function Current. Source. File. Name, which returns the source file name of the Files entry that is currently being processed. The returned name may include constants. Note Do not attempt to call this function from outside a Check, Before. Install or After. Install event function belonging to a Files entry with the external flag. The already existing Str. To. Float and Float. To. Str functions are now documented. Strings and numbers are now highlighted. Based on contribution by maldoinc via Git. Hub. Unicode Inno Setup Added new class TString. Stream. Inno Setup Preprocessor ISPP changes. Added new function Delete. File. Now. Added 6. Read. Reg. Added official Scottish Gaelic and Turkish translations. Fix Setup section directive Use. How can I delete a file from git repo To remove the file from the repo and not delete it from the local file system use git rm cached file. The below exact situation is where I use git to maintain version control for my businesss website, but the mickey directory was a tmp folder to share private content with a CAD developer. When he needed HUGE files, I made a private, unlinked directory and ftpd the files there for him to fetch via browser. Forgetting I did this, I later performed a git add A from the websites base directory. Subsequently, git status showed the new files needing committing. Now I needed to delete them from gits tracking and version control. Sample output below is from what just happened to me, where I unintentionally deleted the. Thankfully, I dont care what happened to the local copy to. I just made to the website and would be epic to have been deleted on the local file system Local file system the live website not a great practice, but is reality. SCN. SCN. 0. 03 has local modifications. SCN. 0. 03. rm shopmickeymttflangeSCN. On branch master. Changes to be committed. HEAD lt file. to unstage. SCN. 0. 03. Changed but not updated. SCN. 0. 01. modified shopmickeymttflangeSCN. S. shopmickeymttflangeSCN. SCN. 0. 02. www git rm cached shopmickeymttflangeSCN. SCN. 0. 02. www ls shopmickeymttflangeS SCN. SCN. On branch master. Changes to be committed. HEAD lt file. to unstage. SCN. 0. 02. deleted shopmickeymttflangeSCN. Changed but not updated. SCN. 0. 01. Update This answer is getting some traffic, so I thought Id mention my other Git answer shares a couple of great resources This page has a graphic that help demystify Git for me. The Pro Git book is online and helps me a lot.