Lynda.com is now LinkedIn Learning!

To access Lynda.com courses again, please join LinkedIn Learning

All the same Lynda.com content you know and love

Plus personalized recommendations and LinkedIn Career access   

All for the same price as Lynda! Get a 1-month free trial today.

Try LinkedIn Learning for free
Questions? Visit our help center.
Skip navigation

Understanding Git hosting

Understanding Git hosting: Git Essential Training
Understanding Git hosting: Git Essential Training

Join for an in-depth discussion in this video Understanding Git hosting, part of Git Essential Training.

Resume Transcript Auto-Scroll
Skill Level Beginner
6h 25m
Duration
4,281,025
Views
Show More Show Less

Q: In the Chapter 10 movie "Configuring the command prompt to show the branch," when I type the function "__git_ps1," I do not get the expected result.

A: The function "__git_ps1" was recently moved to a new file, .git-prompt.sh, as described here: https://github.com/git/git/commit/af31a456b4cd38f2630ed8e556e23954f806a3cc.

We will update the video. In the meantime, you may do the same steps you do for .git-completion.bash, but a second time using ".git-prompt.sh" as shown here: https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh.

Q: When I use the code the instructor advises in the above video ("git config
--global user.name "Nelda Street"), I still get an "Illegal Instruction"
error. I have OS 10.6.8. Am I doing something wrong?

A: The current installer version of git isn't compatible with older Mac OS versions.

 
https://code.google.com/p/git-osx-installer/issues/detail?id=96
 
The workaround solutions people offer are:
 
1. To add "-mmacosx-version-min=10.6" as described here:
https://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10
 
https://stackoverflow.com/questions/10177038/illegal-instruction-4-shows-up-in-os-x-lion
 
2. Or to use the version of git that comes with Xcode, or to use homebrew to install git instead.
http://superuser.com/questions/697144/installed-git-not-sure-how-to-get-it-working

Skills covered in this course
Development Tools Developer Git GitHub

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of Lynda.com courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving Lynda.com and will be automatically redirected to LinkedIn Learning to start your free trial.