How do I use git bisect?

The idea behind git bisect is to perform a binary search in the history to find a particular regression. Imagine that you have the following development history: … — 0 — 1 — 2 — 3 — 4* — 5 — current You know that your program is not working properly at the current revision, … Read more

How to add a comment in a .gitignore file?

Yes, you may put comments in there. They however must start at the beginning of a line. cf. http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files The rules for the patterns you can put in the .gitignore file are as follows: – Blank lines or lines starting with # are ignored. […] The comment character is #, example: # no .a files … Read more

Go to a particular revision

Before executing this command, keep in mind that it will leave you in a detached head status. Use git checkout <sha1> to check out a particular commit. Where <sha1> is the commit unique number (SHA-1 hash value) that you can obtain with git log. Here are some options after you are in the detached head … Read more

How can I remove/delete a large file from the commit history in the Git repository?

Use the BFG Repo-Cleaner, a simpler, faster alternative to git-filter-branch, specifically designed for removing unwanted files from Git history. Carefully follow the usage instructions. The core part is just this: java -jar bfg.jar –strip-blobs-bigger-than 100M my-repo.git Any files over 100 MB in size (that aren’t in your latest commit) will be removed from your Git … Read more

Is there any way to continue Git clone from the point where it failed?

Unfortunately this cannot be done. See Continue interrupted git clone No. git clone cannot be restarted. You’ll need to rm -rf common, and then restart then clone from the beginning. Continue git clone after interruption Unfortunately, we did not have enough GSoC slots for the project to allow restartable clones. There were discussions about how … Read more

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