How can you git pull only the current branch?

Git already only pulls the current branch. If you have branch set up as a tracking branch, you do not need to specify the remote branch. git branch –set-upstream localbranch reponame/remotebranch will set up the tracking relationship. You then issue git pull [–rebase] and only that branch will be updated. Of course, all remote tracking … Read more

Rails Console: reload! not reflecting changes in model files? What could be possible reason?

reload! only reloads the latest code in the console environment. It does not re-initialize existing objects. This means if you have already instantiated any objects, their attributes would not be updated – including newly introduced validations. However, if you create a new object, its attributes (and also validations) will reflect the reloaded code. more here

At what point does a config file become a programming language?

Very interesting questions! I tend to limit my config files to a very simple “key=value” format, because I fully agree with you that config files can very quickly become full-blown programs. For example, anyone who has ever tried to “configure” OpenSER knows the feeling you are talking about: it’s not configuration, it’s (painful) programming. When … Read more

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