How to modify the message for unpushed commits?

Amending the most recent commit message

git commit –amend

will open your editor, allowing you to change the commit message of the most recent commit.

Additionally, you can set the commit message directly in the command line with:

git commit –amend -m “New commit message”


How to Merge Git branch to Master (Bitbucket)

Simply follow the following process….

git fetch
git checkout branch_name
git pull origin branch_name

git checkout master
git merge branch_name

git push origin master
Here is very good explanation…


xcrun: error: invalid active developer path macOS Sierra

giving me the following error:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

How do I fix it?

Answer is simple – Open Terminal, and run the following:

xcode-select –install

It will tell you to install the necessary software to fix this issue.

Moyens-MBP:dwn moyen$ xcode-select –install
xcode-select: note: install requested for command line developer tools