I tried to create my repository but when pushing it into github there is no response for  git push -u origin main .
            Asked
            
        
        
            Active
            
        
            Viewed 331 times
        
    2
            
            
        
        Amir Ahmadihagh
        
- 21
 - 1
 
- 
                    1you probably meant `master` instead? by default its a master branch – timnaire Jul 02 '21 at 00:52
 - 
                    @timnaire no in github the dafault is main – Amir Ahmadihagh Jul 02 '21 at 01:15
 - 
                    oh i didn't know they already change it, have you try this? `git puh -u origin main:main` ? – timnaire Jul 02 '21 at 02:08
 - 
                    This sounds like https://github.com/git-for-windows/git/issues/3294. – bk2204 Jul 02 '21 at 08:40
 
1 Answers
0
            
            
        If your remote origin is an HTTPS URL, then this is what I mentioned here, as commented: issue 3264 or issue 3268
Possible workarounds:
- use the old credential manager: 
git config --global credential.helper manager - switch to an SSH URL: 
git remote set-url origin git@github.com:<me>/<myrepo>
(assuming you have set up a public key in your GitHub profile) 
        VonC
        
- 1,262,500
 - 529
 - 4,410
 - 5,250