Posts

Showing posts from 2012

Disable or enable proxy for Internet explorer or Chrome

Internet explorer and Google chrome both shares same proxy settings. So if we change setting in internet explorer, then it also effects in Google chrome. We can change proxy setting from CMD (command line prompt). Disable proxy setting : @ECHO OFF ECHO Configuring Proxy Settings! please wait... REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f Enable proxy setting : @ECHO OFF ECHO Configuring Proxy Settings! please wait... REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d address:portNumber /f address: New proxy address portNumber: Port Number Save the commands in a batch file and execute it. It will disable/enable the proxy setting for browser.

Undo git add before commit

GIT Basics :       git add  moves changes from current working directory to another area. This is known as staging area and moving files from current directory to staging area is known as staging. So to undo our changes we can use following command :                                                                                                        git reset HEAD -- Their is also some other commands found, but i tried this one and it really helpful for me. Some other commands :  git reset FILE   git remove / git rm - Dont use this command, it will remove the file.