Force push current branch

You can use aliases to shorten the command. Use it like this: git config –global alias.fpush “push –force origin” Now to push your branch just type: git fpush feature-mongodb-support Or you can even hardcode the branch name into the command: git alias fpush “push –force origin feature-mongodb-support” and use only git fpush to push your … Read more

How do I alias commands in git?

Basically you just need to add lines to ~/.gitconfig [alias] st = status ci = commit -v Or you can use the git config alias command: $ git config –global alias.st status On unix, use single quotes if the alias has a space: $ git config –global alias.ci ‘commit -v’ On windows, use double quotes … Read more

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