Git keeps prompting me for a password

I think you may have the wrong Git repository URL. Open .git/config and find the [remote “origin”] section. Make sure you’re using the SSH one: ssh://git@github.com/username/repo.git You can see the SSH URL in the main page of your repository if you click Clone or download and choose ssh. And NOT the https or git one: … Read more

Git command to show which specific files are ignored by .gitignore

Notes: xiaobai’s answer is simpler (git1.7.6+): git status –ignored (as detailed in “Is there a way to tell git-status to ignore the effects of .gitignore files?”) MattDiPasquale’s answer (to be upvoted) git clean -ndX works on older gits, displaying a preview of what ignored files could be removed (without removing anything) Also interesting (mentioned in … Read more

How can I deal with this Git warning? “Pulling without specifying how to reconcile divergent branches is discouraged”

In its default mode, git pull is shorthand for git fetch followed by git merge FETCH_HEAD. When you do a git pull origin master, git pull performs a merge, which often creates a merge commit. Therefore, by default, pulling from the remote is not a harmless operation: it can create a new commit SHA hash … Read more

Is it possible to move/rename files in Git and maintain their history?

Git detects renames rather than persisting the operation with the commit, so whether you use git mv or mv doesn’t matter. The log command takes a –follow argument that continues history before a rename operation, i.e., it searches for similar content using heuristics. To lookup the full history, use the following command: git log –follow … Read more

How to change line-ending settings

The normal way to control this is with git config For example git config –global core.autocrlf true For details, scroll down in this link to Pro Git to the section named “core.autocrlf” If you want to know what file this is saved in, you can run the command: git config –global –edit and the git … Read more

How do I ignore an error on ‘git pull’ about my local changes would be overwritten by merge?

If you want remove all local changes – including files that are untracked by git – from your working copy, simply stash them: git stash push –include-untracked If you don’t need them anymore, you now can drop that stash: git stash drop If you don’t want to stash changes that you already staged – e.g. … Read more

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