What is .gitignore exactly?

.gitignore tells git which files (or patterns) it should ignore. It’s usually used to avoid committing transient files from your working directory that aren’t useful to other collaborators, such as compilation products, temporary files IDEs create, etc. You can find the full details here.

Git: Where exactly is the “working directory”?

I am going through some Git tutorials. The concept of a “working directory” keeps being mentioned, however, none of the tutorials or documents I read points out where or what this “working directory” is. I have thought that it was actually the .git‘s parent directory, a.k.a the directory I run git init in. But the … Read more

Git ignore local file changes

git pull wants you to either remove or save your current work so that the merge it triggers doesn’t cause conflicts with your uncommitted work. Note that you should only need to remove/save untracked files if the changes you’re pulling create files in the same locations as your local uncommitted files. Remove your uncommitted changes … Read more

How to modify a specified commit?

You can use git rebase. For example, if you want to modify commit bbc643cd, run Please note the caret ^ at the end of the command, because you need actually to rebase back to the commit before the one you wish to modify. In the default editor, modify pick to edit in the line mentioning ‘bbc643cd’. Save the file and exit: git will interpret and automatically … Read more

How to use Git and Dropbox together?

I think that Git on Dropbox is great. I use it all the time. I have multiple computers (two at home and one at work) on which I use Dropbox as a central bare repository. Since I don’t want to host it on a public service, and I don’t have access to a server that … Read more

Git checkout – switching back to HEAD

You can stash (save the changes in temporary box) then, back to master branch HEAD. Jump Over Commits Back and Forth: Go to a specific commit-sha. $ git checkout <commit-sha> If you have uncommitted changes here then, you can checkout to a new branch | Add | Commit | Push the current branch to the remote. # checkout a new … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)