Bash-Git icon indicating copy to clipboard operation
Bash-Git copied to clipboard

03_git

Open rbarreto opened this issue 2 years ago • 3 comments

need this command to git push for some reason git push -u -f origin master

rbarreto avatar Jun 27 '22 22:06 rbarreto

The -f flag is a force push, which you should only really do in one circumstance (rebasing). In general, we should discourage attendees from using it.

pssachdeva avatar Jun 27 '22 23:06 pssachdeva

when we tried to use git push, everyone got the following error:

remote: Invalid username or password. fatal: Authentication failed for

the only workaround was the git push -u - f origin master this then allowed us to enter the username and access token (ie in the password field) -- we tried to do this earlier in the workshop under 02 but it didn't generate a field to enter the username and token

rbarreto avatar Jun 27 '22 23:06 rbarreto

This is when everyone created a new repo, and then tried to push something new to it?

pssachdeva avatar Jun 28 '22 00:06 pssachdeva