How can I fork my own GitHub repository?

You’re doing the right thing. cd ~/Sites/ git clone ~/Dev/markupDNA/ project-N cd project-N git remote rename origin markupDNA Nav to the folder where you store your projects clone your base markupDNA repo with custom name rename the remote so that if you want to an ‘origin’ later, you can

remote tag not shown in local

Unfortunately, git pull doesn’t fetch tags by default. You need to run git fetch –tags, and then you’ll have them. The default behavior of git pull and git fetch is to only retrieve tags that are directly accessible by the current references. If any tags are not, then those are not fetched. Passing –tags to … Read more

How can I get the current git branch in gradle?

You also are able to get git branch name without the plug-in. def gitBranch() { def branch = “” def proc = “git rev-parse –abbrev-ref HEAD”.execute() proc.in.eachLine { line -> branch = line } proc.err.eachLine { line -> println line } proc.waitFor() branch } Refer to: Gradle & GIT : How to map your branch … Read more

How can I use SSH remotes with GitHub Desktop?

As more recently seen in “Permission failure cloning in Git in Windows”, try and launch GitHub Desktop after: (warning: read comments first) git config –global core.sshCommand “‘C:\Windows\System32\OpenSSH\ssh.exe'” That will ensure GitHub Desktop to use the right OpenSSH ssh.exe, instead of an internal one, as seen in desktop/desktop issue 5641. If Git bash does not work … Read more

How can I use husky to check a git commit message format?

With Husky 7+, you can add the following to .husky/commit-msg file: #!/usr/bin/env sh . “$(dirname — “$0″)/_/husky.sh” message=”$(cat $1)” requiredPattern=”^(add|cut|fix|bump|make|start|stop|refactor|reformat|optimise|document|merge) .*$” if ! [[ $message =~ $requiredPattern ]]; then echo “-” echo “-” echo “-” echo “🚨 Wrong commit message! 😕” echo “The commit message must have this format:” echo “<verb in imperative mood> <what … Read more

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