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”
Simply follow the following process….
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…
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:
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
you can specify Git configuration settings with the git config command. One of the first things you did was set up your name and email address:
$ git config –global user.name “Moyen Uddin”
$ git config –global user.email email@example.com
useful link: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration