Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 ]
 
PREVIOUS NEXT
Tagged: #git #push #working
ADD COMMENT
Topic
Name
8+3 =