Git Giving “fetch first” error when trying to push

23 I have been taken same error, then I solved this topic with used “–force” command. Briefly, write this command; Attention: Probably, you tried to do push your codes over and over again before , that’s why you took this error.My solution overwrite forcefully with your changeset. By this method your repository may cause mismatch … Read more

“*** Please tell me who you are.” when using SSH key

Rungit config –global user.email “[email protected]”git config –global user.name “Your Name” Note: You are authenticated successfully but git needs your username & email to do a commit. It is not related to authentication. Your username/email can be different from your GitHub Account. You need to run the following commands for a single time. This user.name & user.email will be set globally in ~/.gitconfig file.

How to add multiple files to Git at the same time

To add all the changes you’ve made: git add . To commit them: git commit -m “MY MESSAGE HERE” #-m is the message flag You can put those steps together like this: git commit -a -m “MY MESSAGE HERE” To push your committed changes from your local repository to your remote repository: git push origin master … Read more

How to undo ‘git reset’?

Short answer: Long answer: Git keeps a log of all ref updates (e.g., checkout, reset, commit, merge). You can view it by typing: Somewhere in this list is the commit that you lost. Let’s say you just typed git reset HEAD~ and want to undo it. My reflog looks like this: The first line says that HEAD 0 positions … Read more

Git – Undo pushed commits

You can revert individual commits with: This will create a new commit which reverts the changes of the commit you specified. Note that it only reverts that specific commit, and not commits that come after that. If you want to revert a range of commits, you can do it like this: It reverts the commits … Read more

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