Git Operations: Difference between revisions
From charlesreid1
| Line 3: | Line 3: | ||
==Stop Github Asking for Username and Password== | ==Stop Github Asking for Username and Password== | ||
If git keeps pestering you for your github username and password, the problem is that all of your repositories are being checked out using their HTTPS url to github. This '''always''' requires you to enter your password. | If git keeps pestering you for your github username and password, the problem is that all of your repositories are being checked out using their HTTPS url to github. This '''always''' requires you to enter your password. | ||
Notes: [[Github/Stop Asking for Username and Password]] | |||
==Update/Sync a Fork== | ==Update/Sync a Fork== | ||
Revision as of 23:53, 17 November 2017
Routine Git Operations
Stop Github Asking for Username and Password
If git keeps pestering you for your github username and password, the problem is that all of your repositories are being checked out using their HTTPS url to github. This always requires you to enter your password.
Notes: Github/Stop Asking for Username and Password
Update/Sync a Fork
If you have a fork that has fallen behind the upstream by several commits, here are instructions for how to update it: Git/Sync a Fork
Delete Remote Branch
If you're making multilpe fixes to a remote repository, you might end up creating multiple branches, one for each PR you're submitting. This leaves lots of remote branches laying around. If you want to delete these, here are instructions: Git/Delete Remote Branch
Delete Latest Commits From Master Branch
If you royally fuck things up and commit to the master branch when you did not intend to, git purists will relegate you to the seventh layer of hell.
Don't worry, hope is not lost, here's how you can fix it (quick, before anybody notices!): Git/Delete Commits from Master
Resolving Git Push Conflicts
Notes on how to resolve conflicts that occur when running git push. See Git/Resolving Push Conflicts