Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git push origin main not working

When pushing your code, "main" is the branch name you're pushing to. Check if that's the branch on your github. 
If that doesn't work, you can start from scratch and remove all git instances by running

rm -rf .git

Then start the process all over again and set your branch name to "main" then run "git push origin main"
Comment

git push origin master not working

Possible errors:

1. Origin - you maybe be pushing to the wrong origin.
git set-url origin git@github.com: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"
Comment

PREVIOUS NEXT
Code Example
Shell :: find home dir for user 
Shell :: how to add the permission in the lampp in ubuntu 
Shell :: pacman uninstall 
Shell :: arch pacman remove 
Shell :: macos kill process on port 
Shell :: install eclipse in fedora 
Shell :: install spark on mac 
Shell :: debian terminal paste 
Shell :: change user default shell 
Shell :: how to install pip2 in kali linux 2021 
Shell :: error: src refspec master does not match any. 
Shell :: adb install apk 
Shell :: git abort conflict stash 
Shell :: how to enable bluetooth on terminal 
Shell :: ssh without password 
Shell :: size of folder 
Shell :: how to connect to heroku app using git remotely 
Shell :: install nginx in amazon linux 2 
Shell :: pupeteer install ubuntu 
Shell :: conky ubuntu 20.04 install 
Shell :: checkout remote branch 
Shell :: libc-bin error 
Shell :: npm install in dev mode 
Shell :: pulseaudio check if runnings 
Shell :: shell script or condition 
Shell :: uninstall all microsoft apps powershell 
Shell :: copy local docker image to kind cluster 
Shell :: do not install puppeteer 
Shell :: how to install dependencies from package.json 
Shell :: Unsupported file ./google-chrome-stable_current_amd64.deb kali 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =