4 Editing Component Libraries and Test Projects with git - noeldiviney/P5LP_Development_repo GitHub Wiki

Editing the Components in ~projects/P5LP/ComponentsDev

  • Use "repo sync" to bring things up to date

  • cd to the desired Library

  • Issue a "git status"

$ git status
HEAD detached at refs/heads/master
  • Issue "git checkout master" as the branch to use

$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'ND_P5LP_Component_lib/master'.
  • Edit or add a Library Component as required

  • When done use

$ git commit -a
  • Now "push" to Github

$ git push
fatal: remote error:
  You can't push to git://github.com/noeldiviney/ND_P5LP_Component_lib.git
  Use https://github.com/noeldiviney/ND_P5LP_Component_lib.git
  • To overcome this error one needs to add the URL above to "push"

$ git push https://github.com/noeldiviney/ND_P5LP_Component_lib.git
Username for 'https://github.com':
  • Finish off by issuing a "repo sync" from the ~/projects/P5LP directory

⚠️ **GitHub.com Fallback** ⚠️