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 firstname.lastname@example.org
we can get the files by the following commad..
git checkout source_branch file/files
I’am really new by to doing work in a team of git environment and facing different issues time to time..
This is an issue that I faced today while did some changes in my local files and try to commit and pull/push…
after commit and also did some random changes. At last I got the message “Your branch is ahead of ‘origin/master’ by 3 commits” while try to pull.
So Finally I decided to reset all my changes with remote origin master and it’s so simple with the following (git reset – – hard origin/master) …
Moyens-MBP:corp moyen$ git reset – – hard origin/master
Where it means….
“throw away all my staged and un-staged changes, forget everything on my current local branch and make it exactly the same as origin/master”
I have changed some files on my local machine, pushed them to a remote repository, and now I’m trying to pull the changes to the server and I get the message;
error: Your local changes to the following files would be overwritten by merge:
Please, commit your changes or stash them before you can merge.
So What I simply did that …..
Moyens-MBP:~ moyen$ git checkout wp-content/plugins/pluginname/file.php
Moyens-MBP:~ moyen$ git commit -m “merged”
Moyens-MBP:~ moyen$ git pull
Moyens-MBP:~ moyen$ git push origin master
and this makes override the local file with the remote one (git checkout filepath) and deploys the other changes.