I use SourceTree with Git but need to work with SVN repistory, what options do I have?

If those opensource projects are no longer active in their Subversion referential, you could: clone them locally (you can use TortoiseSVN for example) use SubGit to make a one-time conversion between the local SVN repository and a new local Git repository. push the new Git repository to a new upstream repository hosting service. But if the SVN repository … Read more

Updating and committing only a file’s permissions using git version control

By default, git will update execute file permissions if you change them. It will not change or track any other permissions. If you don’t see any changes when modifying execute permission, you probably have a configuration in git which ignore file mode. Look into your project, in the .git folder for the config file and you should see something … Read more

What exactly does the “u” do? “git push -u origin master” vs “git push origin master”

The key is “argument-less git-pull”. When you do a git pull from a branch, without specifying a source remote or branch, git looks at the branch.<name>.merge setting to know where to pull from. git push -u sets this information for the branch you’re pushing. To see the difference, let’s use a new empty branch: First, we push without -u: remote = <nickname> … Read more

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

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