Need help pushing my app to git

Hi Guys ,

Thanks for the support , I referred this post

and created a git repo and followed the steps

ommi@ommi:~$ cd /home/ommi/frappe-bench/apps/heat_treatment
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git init
Initialized empty Git repository in /home/ommi/frappe-bench/apps/heat_treatment/.git/
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git add README.mdommi@ommi:~/frappe-bench/apps/heat_treatment$ git commit -m "first commit"
[master (root-commit) 8d6457a] first commit
 1 file changed, 7 insertions(+)
 create mode 100644 README.md
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote add upsteam https://github.com/niville/addon.git
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git push upstream master
fatal: 'upstream' 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.

I am getting the above error please help

Thanks

Hi,

use git push upsteam master or rename the remote using
git remote rename upsteam upstream and push using upstream

Thanks, Makarand

1 Like

Hi @makarand_b .

Thanks for quick reply , I will try and let you know .

Thanks

Hi , @makarand_b ,

I am getting the same error , please help

ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote rename upsteam upstreamommi@ommi:~/frappe-bench/apps/heat_treatment$ git push upsteam master
fatal: 'upsteam' 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/heat_treatment$ 

Thanks

Hi,

you have renamed the remote to upstream and trying to push on old remote,

try the git remote -v you will get the current remote alias and use that to push the code.

Thanks, Makarand

1 Like

Thanks a lot for the support , I am a newbie could you please guide me on this , now I get this error

ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote -v
upsteam	https://github.com/niville/addon.git (fetch)
upsteam	https://github.com/niville/addon.git (push)
upstream	https://github.com/niville/addon.git (fetch)
upstream	https://github.com/niville/addon.git (push)
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git push upstream master
Username for 'https://github.com': ommiforgedata@gmail.com
Password for 'https://ommiforgedata@gmail.com@github.com': 
remote: Repository not found.
fatal: repository 'https://github.com/niville/addon.git/' not found

I created a new repo in git but why did I get this error ?

Please help

Thanks

The addon repository is not created on Github, create a new repository with the same name then try to push the code

1 Like

Many thanks for the support , I will try and let you know .

Thanks

Hi @makarand_b .

I created a repo in the same name , which is addon and now I am getting the below error ,

ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote add upsteam https://github.com/Niville/addon.git
fatal: remote upsteam already exists.
ommi@ommi:~/frappe-bench/apps/heat_treatment$ 

Please guide me .

Thanks

@Ninja,

You can change the upstream URL using set-url option.

e.g. `git remote set-url upstream https/github.com/your_repo_name.

Thanks, Makarand

1 Like

Thanks for the support @makarand_b . Inspite of doing that I am getting the same error

ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote set-url upstream https/github.com/heat
ommi@ommi:~/frappe-bench/apps/heat_treatment$ git remote add upsteam https://github.com/Niville/heat.git 
`fatal: remote upsteam already exists.`

Could you guide me ? Thanks

please refer https://git-scm.com/docs/gittutorial

2 Likes

Hi ,
@makarand_b I will read the manual and try doing it . I will post if I am struck somewhere .Thanks

Hi @makarand_b ,

Thanks a lot for guiding me , I was able to do that finally . The same way I have customized erpnext standard modules , I understand even erpnext is an app . Will following the same procedure help me in pushing my customized erpnext in my repo ? If a different procedure has to be followed , could you guide me how to do that.

Thanks