Categorygit

Set upstream and publish branch on git push

S

For those of you that work on a lot of different repo’s and in different branches in those repos, I’m sure you see this a lot when trying to publish a new branch. Womp womp, error! Like most of you I just copy/paste what it tells me to, but it does give us a hint to how to fix this issue by telling us to look in git help config so we can set push.autoSetupRemote to true. The only...

Revert Single File in GIT Commit

R

Step by step how to revert a file from a commit: Where to find the commit ID you’ll need Navigate to the repo which has the file version you are looking forClick through until you get to the file in questionTop right of the table you will see the last commit with a commit ID, 7 characters long and cryptic lookingCopy that number (example: 491ce18) and remember the path/to/your/file.phpIn...

Follow Me