Git: Merge a Remote branch locally

You can reference those remote tracking branches ~(listed with git branch -r) with the name of their remote. You need to fetch the remote branch: If you want to merge one of those remote branches on your local branch: Note 1: For a large repo with a long history, you will want to add the –depth=1 option when you … Read more

How do I rename a repository on GitHub?

I wanted to rename one of my repositories on GitHub, but I got scared when a big red warning said: We will not set up any redirects from the old location You will need to update your local repositories to point to the new location Renaming may take a few minutes to complete Does anyone … Read more

Download a single folder or directory from a GitHub repo

Update Apr. 2021: there are a few tools created by the community that can do this for you: Download Directory (Credits to fregante) It has also been integrated into the excellent Refined Github chrome extension as a button in the Github web UI. GitZip (Credits to Kino – see his answer here) DownGit (Credits to Minhas Kamal – see his answer here) Note: if you’re trying to download a … Read more

Untrack files from git temporarily

git update-index should do what you want This will tell git you want to start ignoring the changes to the filegit update-index –assume-unchanged path/to/file When you want to start keeping track againgit update-index –no-assume-unchanged path/to/file Github Documentation: update-index