Bash-Git
Bash-Git copied to clipboard
03_git
need this command to git push for some reason git push -u -f origin master
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.
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
This is when everyone created a new repo, and then tried to push something new to it?