Git revert local commit
git reset –hard remotes/origin/HEAD
git reset –hard remotes/origin/HEAD
This works for me to change the text colors used by Git Bash on Windows 7: Click on the upper left corner of an open Git Bash window (the Git icon in the window frame). A menu appears (the same that would appear with a regular DOS cmd Window). Choose the last entry: “Properties”, UPDATE … Read more
Git want to show more than one screen of information to you, to do so it call the standard unix pager program less. Just type q to return to the prompt when you no longer want to navigate in the output. j move one line down k move one line up <space> move one page … Read more
Update 2010-2014: Both ssh and https are equivalent, since Git 1.6.6+ (2010) and the implementation of smart http protocol: You now can use ssh or https for read/write access to your repos. You can also detect if your remote server supports smart http. Add the right environment variable if you have to use a proxy. … Read more
Since version 1.5.3 of the native Git client git clone and git init will probe the target file system for symlink support and set the local repository configuration for core.symlinks accordingly, i.e. to false for FAT or NTFS. This makes symlinks created and committed e.g. under Linux appear as plain text files that contain the … Read more
Edit (2 more years later: October 2014) Johannes Schindelin just explained (Oct. 2014) that msysgit is phased out: we now have a light-weight Git for Windows SDK – which is essentially a standard MinGW/MSys system managed through the package manager mingw-get. We decided to just phase out the name “msysGit” (as well as the GitHub … Read more
You can significantly speed up Git on Windows by running three commands to set some config options: git config –global core.preloadindex true git config –global core.fscache true git config –global gc.auto 256 Notes: core.preloadindex does filesystem operations in parallel to hide latency (update: enabled by default in git 2.1) core.fscache fixes UAC issues so you … Read more
As mentioned in issue 397: This is intended. We do not ship pacman with Git for Windows. If you are interested in a fully fledged package manager maintained environment you have to give the Git for Windows SDK a try. The bash that you see in the latest git for Windows (2.5.3), which is a … Read more
The website git-scm.com is the official website for Git, the version control software. There is no “Git-SCM”, that’s just the URL of the source control management (SCM) software—the name is just Git. Originally written for Linux, the original Git software is only available as a source that doesn’t compile easily on Windows. If you are … Read more
This doesn’t exist, but it could easily exist in the current framework. Just as Git acts differently with displaying binary or ASCII files when performing a diff, it could be told to offer special treatment to certain file types through the configuration interface. If you don’t want to change the code base (although this is … Read more