Git save local changes without commit

Often, when you’ve been working on part of your project, things are in a messy state and you want to switch branches for a bit to work on something else. The problem is, you don’t want to do a commit of half-done work just so you can get back to this point later. The answer to this issue is the git stash command. Stashing takes the dirty state of your working directory – that is, your modified tracked files and staged changes – and saves it on a stack of unfinished changes that you can reapply at any time.

Maintain consistent coding styles between different editors and IDEs

Nowadays people are using different IDE and they are using different styles as well as format for source files. When we push to our source control it may cause conflict. There is one way to avoid that is to use EditorConfig. When you put this file to your source code, all the supported IDE or through plugin, will format the source code files with the same style you predefined in the .

Write to NTFS usb thumb drive from OSX

You have an USB thumb drive which contains the files copied from a Windows machine and now you connect to your Macbook OSX and you can read the files but can’t write to that drive or modified the contents. There is 1 way to do that is modifying the fstab file Add below line to fstab file and save it (Ctrl O) Remember to change the USBName to your USB thumb drive name.

Using different git accounts in your computer

I am using 2 different GitHub accounts on my computer. I checked out using my account A first and Windows asked my for storing the credential and I accepted. But when I try to push to my account B repository, git always use my account A to push and error return Option 1: Try to check out B’s repo again with B account in the url then try to push

Bower install hangs at prompt input message

Today when I try to run The bower install the dependencies but there after displaying the it got stuck there. I try but no use. After that I found out there is message Bower want to tell me and ask me for my selection. I go to file .bowerrc and remove the line then try again. Now it prompts me a message ask me to choose the correct version for one of my dependencies.