How to remove files from git staging area?

You can unstage files from the index using Just like git add, you can unstage files recursively by directory and so forth, so to unstage everything at once, run this from the root directory of your repository: Also, for future reference, the output of git status will tell you the commands you need to run to move files … Read more

What are the differences between .gitignore and .gitkeep?

.gitkeep isn’t documented, because it’s not a feature of Git. Git cannot add a completely empty directory. People who want to track empty directories in Git have created the convention of putting files called .gitkeep in these directories. The file could be called anything; Git assigns no special significance to this name. There is a competing convention of adding … Read more

Download a specific tag with Git

will give you the whole repository. After the clone, you can list the tags with $ git tag -l and then checkout a specific tag: Even better, checkout and create a branch (otherwise you will be on a branch named after the revision number of tag):

Meaning of the GitHub message: push declined due to email privacy restrictions

The remote repository has been configured to disallow you pushing a commit that would reveal your personal e-mail address. For example in GitHub you have checked the Block command line pushes that expose my email checkbox to enable this. While you can of course uncheck that setting, it will expose your private e-mail address to everyone in the … Read more

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