👨🔧 Finally got sick of seeing this error when pushing new branches. Turns out a simple config option allows `git push` to do the heavy lifting. Why is this not the default?!
Do yourself a favour 👇 https://t.co/hBJa5JJbIm
GitHub pro tip! 💁♂️
You can filter issues by closed dat if you want to find out what happened in the last few days. https://t.co/NUd2CWEuuX
Git tip: Have a lot of old branches on your machine? Here's a Bash script that removes local branches that are no longer remote:
git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Merge vs rebase tradeoff:
Merge: “Tell me your version of the story, I’ll tell you mine, and then we’ll try to piece something together out of them”
Rebase: “Tell me your version of the story, and I will interrupt your every sentence to tell you where you’re wrong”
Did you know you could exclude files from just your local instance of a Git repository?
Just treat .git/info/exclude as a .gitignore file.
??? https://t.co/QnkKnVWNUA
You can add a personal token to your composer.json to access the private repositories hosted on your @gitlab. Awesome! ? https://t.co/2j1XH9WDFv
? Tip of the Day
Press T while in a Github Pull Request to get a fuzzy search for all changed files. ? https://t.co/LOQsJ9z0vZ
? Protip: did you know you can `git clone` GitHub gists, like you would any other repo? And then `git push` anything to them! ?
Add the -p option when using git add to interactively stage your changes. Never commit a console.log() again!
? https://t.co/VR13uFfR86
?Here are some of my more recent git helpers - easily create feature and bug branches #lazyfingers #git https://t.co/wXUdrrgtsY
⚡️ Git matches branches by name. If your reference are up-to-date, you can save some keystrokes when checking out remote branches. https://t.co/St6iuEYu7c
? Handy git alias I use a lot for pushing a new local branch up to a remote ?? https://t.co/Tf3KILDdyj