0

It is time for me to use git. I have downloaded the git, made remote repo https://github.com/vVicoo/pokemon-scrap (with README and LICENSE files there), commit changes on my local repository where my project lies. I tried to push my 1-file script via

git remote add origin https://github.com/vVicoo/pokemon-scrap.git
git branch -m master main
git push origin main 

The effect is that the git bash console do not proceed, it is like the push command takes forever.

Any ideas what is the cause of such issue? Did I create remote repo improperly? There is something wrong with push itself?

Actually this is rather simple task, for now it is only one file script that has to be pushed.

Screenshot that shows list of commands I made

Alex028502
  • 3,486
  • 2
  • 23
  • 50
vVicoo
  • 1
  • 1
  • I did add the files, make a commit and push still freezes :( – vVicoo Jul 07 '21 at 10:29
  • I added the screenshot that shows my console status – vVicoo Jul 07 '21 at 10:34
  • Does this answer your question? [Git push hangs when pushing to Github?](https://stackoverflow.com/questions/16906161/git-push-hangs-when-pushing-to-github) – deepakchethan Jul 07 '21 at 10:35
  • can you show us your `git status` and `git log main..origin/main` just in case? – Alex028502 Jul 07 '21 at 10:39
  • @Alex028502 here are records from git status: $ git status On branch main nothing to commit, working tree clean. About this log main: $ git log main..--origin/main fatal: ambiguous argument 'main..--origin/main': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' – vVicoo Jul 07 '21 at 10:47
  • @deepakchethan I tried the command "git config --global core.askpass "git-gui--askpass"" but it didn't help – vVicoo Jul 07 '21 at 10:48
  • can you try `git fetch` and then do that again? I don't think you have downloaded the stuff you put there with the github interface – Alex028502 Jul 07 '21 at 11:30
  • Since your repo is public, you should be able to fetch without authentication – Alex028502 Jul 07 '21 at 11:30

0 Answers0