Skip to content

Working on ERPNext Fork

nabinhait edited this page Apr 19, 2013 · 4 revisions

Create and setup ERPNext Fork

You will need to have setup git for either ssh or https access, so that you can push changes. We use ssh access.

  • Setup git user details
  • Setup git ssh keys
  • You will need to fork both of these repositories:
  • Once this is done, install ERPNext. See How to Install ERPNext
  • Then, you can change the origin of both these repositories to your own fork so that you can push your updates to github.
    • go to app folder and run: git remote set-url origin [YOUR ERPNEXT FORK'S SSH GIT URL]
      • Example: git remote set-url origin git@github.com:anandpdoshi/erpnext.git
    • go to lib folder and run: git remote set-url origin [YOUR WNFRAMEWORK FORK'S SSH GIT URL]
      • Example: git remote set-url origin git@github.com:anandpdoshi/wnframework.git
  • Setup upstream to pull updates from webnotes repositories
    • go to app folder and run: git remote add upstream git://github.com/webnotes/erpnext.git
    • go to lib folder and run: git remote add upstream git://github.com/webnotes/wnframework.git
  • To pull updates to webnotes fork, run lib/wnf.py --update upstream master
    • In case of any merge conflicts, you will have to resolve them and run this step again.
  • To push updates to YOUR FORK, run lib/wnf.py --push origin master
  • You can send pull requests to contribute to webnotes fork. See Instructions here