Pushing to Git returning Error Code 403 fatal: HTTP request failed

I just got the same problem and just figured out what’s cause. Github seems only supports ssh way to read&write the repo, although https way also displayed ‘Read&Write’. So you need to change your repo config on your PC to ssh way: edit .git/config file under your repo directory find url=entry under section [remote “origin”] change it from url=https://[email protected]/derekerdmann/lunch_call.git to [email protected]/derekerdmann/lunch_call.git. that … Read more

Create Git branch with current changes

If you hadn’t made any commit yet, only (1: branch) and (3: checkout) would be enough.Or, in one command: git checkout -b newBranch With Git 2.23+ (Q3 2019), the new command git switch would create the branch in one line (with the same kind of reset –hard, so beware of its effect): As mentioned in the git reset man page: You have made some … Read more

Git: How to squash all commits on branch

Another way to squash all your commits is to reset the index to master: This isn’t perfect as it implies you know from which branch “yourBranch” is coming from.Note: finding that origin branch isn’t easy/possible with Git (the visual way is often the easiest, as seen here). Note: git branch –show-current has been introduced with Git 2.22 (Q1 20219). EDIT: you will … Read more

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