sublime text (3200) not allowing git commit ,how to resolve sublime text git commit issue?

I am using Ubuntu 18.04 ,I have removed previous version of sublime text through Ubuntu Software and then installed it through sublime text’s official documentation given Here .

After that Whenever I am trying to git commit it gives the following message and does nothing .

git commit hint: Waiting for your editor to close the file...  '/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'  -n -w: 1: '/Applications/Sublime Text  2.app/Contents/SharedSupport/bin/subl' -n -w:  /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl:  not found error: There was a problem with the editor ''/Applications/Sublime  Text 2.app/Contents/SharedSupport/bin/subl' -n -w'. Please supply the message using either -m or -F option. 

As I am still new to Linux/Ubuntu so want to understand what exactly this issue is and how to resolve it .my current installed version of sublime text is build 3200 . Kindly suggest a way to resolve this issue ,thank you !

Using nano in Cygwin’s Mintty: Shortcuts don’t work when editing git commit message

I’m using Cygwin with Mintty and have set the git editor to nano: git config --global core.editor "nano".

Now when I just run nano, the UI is black and white and the shortcuts, like ctrl+o and ctrl-x work just as expected. But when I create a git commit, nano’s UI is colored, the shortcuts don’t work any more and when I press the arrow keys, the letters A,B,C and D are entered. On Linux, I’ve never seen nano behave differently when run through git.

What causes this and how can I disable this?

How to detect to which branch a tagged commit was merged into

As part of a ci process I have, which is triggered by git tags, I need to auto-update something in the code, using that tag name, and then commit the result back to git.

Problem is, after a successful merge request, the branch is usually deleted, so the tag for that commit, is now completely detached and is not contained within any branch, so “commiting back to git” is not so trivial, because I don’t have a branch to commit into.

I can commit by default into master, and that will usually work, but there will be edge cases in which I cannot predict the behavior for.

A more reasonable solution, is to somehow (if possible) figure out to which branch a tagged commit was merged into, so that I’ll commit back to that branch.

Is that possible?

(also, if you see any problems with this approach and/or have something better to suggest, please share your thoughts)

When should a commit not be version tagged?

Context: I recently found out about Semantic Versioning, and am trying to determine how to best use it practically for my own projects.

Given that semver takes major changes, minor changes, and patches into account for versioning, when should a commit not be tagged with an updated version? It seems to me that every change would fit into one of these categories, and so every change should be versioned, but when I look at various popular projects on GitHub this doesn’t seem to be the way things are done (just looking at the fact that large projects have tens of thousands of commits, with only hundreds of tags).

Conocer commit de origen de commit creado en otra rama con merge –squash

Gráficamente se entiende mejor.

Tengo 2 ramas. Master (sólo commits versiones para producción) y Desarrollo.

Llegué a un punto en que terminó mi desarrollo para esta etapa en particular por lo que saqué un nuevo commit en la rama Master a partir del último commit estable en mi rama de Desarrollo con git merge –squash, tal y como se observa en la imágen.

Mi pregunta es: Gráficamente desde GitKraken es fácil observar en qué punto del desarrollo se origina la versión de producción “@VERSION 1”, pero desde Terminal, ¿Qué comando me permite ver desde qué punto se originó el commit @VERSION 1?

Cabe destacar que técnicamente los commit “@VERSION 1” Y “Actualizado. WordPress: 5.0.3 …” son idénticas. Si se hace un diff entre ellas el resultado es vacío.

Saludos.

How can I impose consequences when PCs commit severe crimes?

For context, this is my first adventure as a DM. The PCs are level 2.

About 40 minutes into the first session, while investigating the rumours about a ghost ship, the group meets with Aleyd Burrows, a skilled veteran, Captain of the Guard and a very important figure.

She gives them various pieces of information and sends them on their way with new leads. As the party starts to leave, the last player walks up to Aleyd, shakes her hand and tries to steal her purse. Luckily he passes the Sleight of Hand check with ease since he rolled a 16+8 (he’s a rogue with Expertise). (I chose a DC of 20 without disadvantage: Aleyd is usually quite alert, but the player did make a very natural “Thank you”+handshake, and Aleyd didn’t have a reason to be more alert then usual.)

However, I do not know how to deal with this had he failed.

Knowing him, he is likely going to pull similar stunts.

P.S. I did talk with him afterwards, and he promised to be more mindful from now on.

He enjoys fooling around, but he is trying to do so without reducing the fun of the others.

He also set off a bit of a conflict with another thing he did, which me and the other players commented on. He did thoroughly apologise for it, and they spent some more time talking it out.

I mostly want to know how to deal with deal with such situations without stepping out of the “in game” position.

Stash/BitBucked prevent use from commiting if commit does not include JIRA number

I’m not going to get a working solution but at least to get an answer if it is possible at all by Stash/Bitbucket. So my request is: We need to deploy some policy for ourselves in the company not to allow engineer to commit if commit comment does not contain (best does not begin with) JIRA issue number. For instance:

TEST-1234 (Jira under which I'm doing a commit) Here's my code 

Thank you in advance!

Different commit messages depending on which machine I commit from

I’m using eclipse to write java programs. Currently I use my desktop to program at home, and a laptop when I am in school. For version control I use git. When committing using eGit in eclipse, it uses the same commit message / sign off when committing from my laptop and desktop. Is there a way I can automatically make it include a tag or something similar that includes what machine I am committing from? Right now it only includes author: email and name, which of course are the same for my laptop and desktop. I would really like to be able to track whether I used my laptop or desktop. Thanks