Answers for "why git push origin not working"

1

git push origin master not working

Possible errors:

1. Origin - you maybe be pushing to the wrong origin.
git set-url origin [email protected]:username/test.git

2. Branch - you may be on the wrong branch. switch to the right branch and then push
git checkout branch

3. Add & Commit - remove to use these commands before pushing
git add .
git commit -m "commit message"
Posted by: Guest on March-06-2022
0

git push not working

//1. make sure you are pushing to the right branch (local main) (origin main) || (local master) (origin master)
//2. if it\'s the first time pushing, delete the readme file on the branch your pushing changes to on the repo on github, add it locally using ( touch RAEDME.md ),
//3. then push or do a git pull origin <branch name>
//4. do a git push -u origin <branch> [the u flag sets a tracking relationship between the two branches, you don\'t have to specify the branch name in subsequent commits ]
Posted by: Guest on March-18-2022

Browse Popular Code Answers by Language