I finished my project , I have made certain modifications to standard erpnext modules now I am trying to push my customized erpnext to my repo in github , but I am getting the following message , please guide me
Thanks for the reply , I read the contents in the above link and added my files and commited , now it is showing this error , what should I do
ommi@ommi:~/frappe-bench/apps/erpnext$ git push upstream master
Username for 'https://github.com': srinivasragav
Password for 'https://srinivasragav@github.com':
remote: Permission to frappe/erpnext.git denied to srinivasragav.
fatal: unable to access 'https://github.com/frappe/erpnext/': The requested URL returned error: 403
Many thanks for reply @KanchanChauhan . Yes I tried again , same error . I tried pushing my own custom app , it was successful but I am not able to push erpnext app .
@KanchanChauhan . Thanks for quick reply , yes I have customized erpnext standard modules to my requirement and I am trying to push my customized erpnext to my repo .
I’m not much familiar with git but this might help.what are you trying to do here is to push it to the master repo not yours thats why you getting access not allowed error.
1- add your changed files
either select which files you wanna add git add [file_name]
or add them all git add .
2- commit your changes git commit -m "message"
3-then create remote branch for your local branch git push origin <branch-name>
4- push your changes to your remote branch git push -u origin <your_branch>
Hi @ganas . Thanks for reply I tried and got this error
ommi@ommi:~/frappe-bench/apps/erpnext$ git push upstream master
fatal: 'https/github.com/erpnext' does not appear to be a git repository
fatal: Could not read from remote repository.
ommi@ommi:~/frappe-bench/apps/erpnext$ git push -u origin upstream
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ommi@ommi:~/frappe-bench/apps/erpnext$
Running git status yielded
ommi@ommi:~/frappe-bench/apps/erpnext$ git status
On branch develop
Your branch is ahead of 'upstream/develop' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
ommi@ommi:~/frappe-bench/apps/erpnext$
ommi@ommi:~/frappe-bench/apps/erpnext$ git push -u origin master
Username for 'https://github.com': srinivasragav
Password for 'https://srinivasragav@github.com':
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/srinivasragav/erp.git'
ommi@ommi:~/frappe-bench/apps/erpnext$
Hi @ganas , @rohit_w and @KanchanChauhan . Many thanks for the help , this post solved my issue I was bit reluctant googling my issue , sorry for that .
Thanks a lot for the help . Please close this thread