How to avoid having to do “git branch –setup-upstream”, and instead default to automatically setup remote tracking?

Git v2.37.1 and above If you are using the mentioned version or above you can use this new config entry to automatically setup remote tracking: git config –global push.autoSetupRemote true After that, when you do git push tracking is setup automatically. No need for git push -u origin my_branch A shortcut, which doesn’t depend on … Read more

Can I add a message/note/comment when creating a new branch in Git?

You want branch descriptions: git branch –edit-description This will open up your editor and let you attach metadata to the branch. You can extract it with: git config branch.<branch>.description A couple of important notes: This is stored locally. By definition it can’t be pushed since it’s stored in .git/config. All the same it works great … Read more

Git flow command error: ‘flow’ is not a git command

The git flow is not installed in your machine. Just run this command, macOS: $ brew install git-flow-avh Linux: $ apt-get install git-flow Windows: $ wget -q -O – –no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash Source git-flow cheatsheet by Daniel Kummer After successful installation run git flow init in your project and then follow the … Read more

Fork from a branch in github

I don’t know a native way yet, but you can do it following this recipe: Fork the repository in question (called ‘upstream’) on the GitHub website to your workspace there. Run the GitHub desktop application and clone the repository onto your PC. Use the GitHub desktop application to open a shell in the repository. (The … Read more

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