git pull fails with “Untracked working tree file ‘blah’ would be overwritten by merge”, but tree is clean

It’s not the commits you’ve made that touch the file, but the commits that you’re pulling. Inspect the remote branch you’re tracking to see what’s happened. For example, git log master..origin/master will show all the commits that have happened on origin/master since you last pulled. According to your output above, there are 26 of these. … Read more

Limit on number of git branches

Yes, branches are free. Branching and merging is very easy. The scalability issues mentioned before comes only when synchronizing a vast amount of branches through the network (git fetch, git pull, git push). Locally you shouldn’t have any problem.

Swap “Latest release” on github

I am not aware of any way to do this directly in GitHub. The “latest release” is determined from the timestamps on your tags, not from the semantics of their names. In the past I have solved this problem on my own personal projects by deleting the problematic older tag: git tag -d v0.1.0 git … Read more

How to convert files in GitHub repository to a Gist

First of all, note that Gist doesn’t support directories. To import a repository into a gist follow the next steps: Create a new gist and clone it locally (replace the dummy id with your Gist id): git clone [email protected]:792bxxxxxxxxxxxxxxx9.git cd to that gist directory Pull and merge from your GitHub repository: git pull [email protected]:<user>/<repo>.git Push … Read more

Multiple commits cherry-picking [duplicate]

You do it correct. The synopsis is git cherry-pick [–edit] [-n] [-m parent-number] [-s] [-x] [–ff] <commit>… git cherry-pick goes from left to right commit. You can order how you want. If you have a conflict you have three choices. you can git cherry-pick –quit (stop cherry-picking and let your tree in his current state), … Read more

Are there any good workarounds to the GitHub 100MB file size limit for text files?

Clean and Smudge You can use clean and smudge to compress your file. Normally, this isn’t necessary, since git will compress it internally, but since gitHub is acting weird, it may help. The main commands would be like: git config filter.compress.clean gzip git config filter.compress.smudge gzip -d GitHub will see this as a compressed file, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)