Skip to main content

Posts

Showing posts with the label git

Set Git to stop tracking file

I have found the need to ignore a file with out using the .gitignore. In my case its because of a chrome driver that we using for Cucumber and Watir. The office has a standard setup with a certain repository, however on my Mac chrome likes to update. This causes an issue with versioning of the driver. So I wanted to put a new chromedriver in my repository folder but not ignore it from the repository. To do this little trick I can update the index and tell it to assume the file is unchanged. git update-index --assume-unchanged <file> If you have the need to reverse the tracking of the file. git update-index --no-assume-unchanged <file>

Git Autocomplete

Step 1 Run this command to get the .git-completion.bash file downloaded to your home directory. curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash Step 2 Add the following code to your .bash_profile which is located in the root of your home directory. if [ -f ~/.git-completion.bash ] ; then . ~/.git-completion.bash fi Now when you open up your shell you will be able to use the TAB key for your Git commands.

GIT - Disable Gnome-SSH-askpass

Recently ran a update on my Fedora Core 18 and have been really annoyed with the dialog window popping up everytime I run a remote GIT command from the CLI. There is an easy quick fix for this. unset SSH_ASKPASS PHEW!!! All Better lol. Have fun coding!