Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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

git push not working

make sure you the branch you are pushing to and  the branch you are in locallly
are the same, {if there is no tracking relationship between the two establish one}
use command git push -u origin <branch>
/if that doesn't work you can do it forcefuylly using 
git push -f origin <branch> 
do a git status to confirm if there are indeed any commits that need to be pushed
do a git push to the origin master again
Comment

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 ]
Comment

PREVIOUS NEXT
Code Example
Shell :: git log show last 3 commits 
Shell :: how to compare a character to uppercase in bash script 
Shell :: ubuntu edit swap m 
Shell :: how to uninstall photos app in windows 10 
Shell :: append string to end of file name bash 
Shell :: clone github project / checkout a single branch 
Shell :: how to install paint.net on linux 
Shell :: clone docker image 
Shell :: makepkg resolve auto dependencies 
Shell :: slack powershell command 
Shell :: count specific number in array powershell 
Shell :: verify large directory after copy files 
Shell :: ubuntu deskyop repository 
Shell :: no linux como dar permição ao .git no htdocs 
Shell :: ubuntu --bind vs mount 
Shell :: install react router 
Php :: php cors allow origin 
Php :: mage log magento 2 
Php :: o perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host. 
Php :: get start of month end of month carbon 
Php :: back() with errors in laravel 
Php :: php get file created date 
Php :: protected table laravel 
Php :: laravel 8 previous page 
Php :: php error reporting all 
Php :: opencart order change status 
Php :: json from php 
Php :: php convert spaces to underscores 
Php :: if ip is php 
Php :: php get referral 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =