-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Agri farm ERPNext PR git primer
Tao Xen edited this page Nov 21, 2017
·
4 revisions
- fork erpnext
git config -e- This opens the .git/config file
- Make sure your remote upstream fetch configs look something like this (by default get-app fetches only the develop branch)
[remote "upstream"]
url = https://github.com/frappe/erpnext
fetch = +refs/heads/develop:refs/remotes/upstream/develop
fetch = +refs/heads/agri-farm-erpnext:refs/remotes/upstream/agri-farm-erpnext
[remote "origin"]
url = https://github.com/<your github username>/erpnext
fetch = +refs/heads/agri-farm-erpnext:refs/remotes/origin/agri-farm-erpnext
- Perform a
git fetch --allwith your current working directory asfrappe-bench/apps/erpnext - Now execute this to checkout 2 new branches agri-farm-erpnext and origin_agri
git checkout -b agri-farm-erpnext --track upstream/agri-farm-erpnext
git checkout -b origin_agri --track origin/agri-farm-erpnext
- Do a
git branch -vv - Your current branch should be
origin_agri
- Make your changes on this local branch +
git add .+git commit -m "<your commit message>"+git push origin HEAD:agri-farm-erpnext - You'll have pushed your changes to
agri-farm-erpnextbranch on your forked repository. - Now visit
https://github.com/<your github username>/erpnext/tree/agri-farm-erpnext - Click on New Pull Request
- Now click on Create Pull Request!