Cloning specific branch

You can use the following flags –single-branch && –depth to download the specific branch and to limit the amount of history which will be downloaded. You will clone the repo from a certain point in time and only for the given branch git clone -b <branch> –single-branch <url> –depth <number of commits> –[no-]single-branch Clone only … Read more

Download specific files from github in command line, not clone the entire repo

If you go to the page and view the links provided by “raw” (in the top left corner, when viewing the file). You will see, that you can access it by: https://github.com/username/repository/raw/$changeset_hash/path/to/file Instead of $changeset_hash you can also provide a branch (e.g. master) or tag. You can retrieve the raw file using something like wget. … Read more

Git clone in windows much slower than in linux

Problem solved. Open command prompt as administrator and run the following commands: netsh interface tcp show global netsh interface tcp set global autotuninglevel=normal netsh interface tcp show heuristics netsh interface tcp set heuristics disabled Do not forget to restart the computer in the end. The cause was auto tuning was set to disabled for some … Read more

How can you add commits to a github pull request of another person to your repo if you can’t commit to their branch?

There are a number of workflows you can use here. Some examples are: Comment on the pull request, and have Bob make some changes. See Pull Request Discussion for more info. Merge the pull request onto a different branch, then make your changes before merging to master. You need to do this from the command … Read more

Do GitHub raw urls expire?

No one has clearly mentioned this, but the github raw urls expire in 7 days. You can use longer lasting personal access tokens generated here: https://github.com/settings/tokens but those can only be used via curl: curl -H ‘Authorization: token <personal_token>’ <raw_url> Note that the personal access tokens expire if unused for an entire year.

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