- Add global fetch remote for ALL pull requests for all repos:
> git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
- Now fetch all the pull requests:
$ git fetch origin
| Windows PowerShell | |
| Copyright (C) 2009 Microsoft Corporation. All rights reserved. | |
| D:\Workspace\Git\Clones\APOCWebsite_MRFBranch [B-01609 +0 ~1 -0 | +0 ~1 -0]> git tfs help | |
| Usage: git-tfs [command] [options] | |
| bootstrap | |
| checkin | |
| checkintool (ct) | |
| cleanup | |
| cleanup-workspaces |
| public void ProcessRequest(HttpContext context) | |
| { | |
| context.Response.Clear(); | |
| context.Response.ContentType = "application/force-download"; | |
| context.Response.AddHeader("content-disposition", "attachment; filename=Current-OptIns_" + DateTime.UtcNow.ToString("yyyyMMddHHmm") + "utc.xls"); | |
| List<ExpandoObject> optInList = DbServices.GetCurrentOptIns(optInList); | |
| DataTable dt = optInList.ToDataTable(); | |
| GridView gv = new GridView(); | |
| gv.DataSource = dt; |
| git log --name-only | grep xaml | sort | uniq -c | sort -Descending > xaml-files-by-tfs-commit-count.txt | |
| What it does: | |
| - looks at the git log file, retrieving just the filenames; | |
| - greps to extract xaml filenames; | |
| - sorts the list of files to get the duplicates together; | |
| - eliminates the duplicates but keeps a count of them; | |
| - resorts the file names by that count; and | |
| - writes the list to a txt file named xaml-files-by-tfs-commit-count.txt |
| [user] | |
| name = Firstname Lastname | |
| email = [email protected] | |
| [core] | |
| editor = 'C:\\Program Files (x86)\\Notepad++\\notepad++.exe' -multiInst -notabbar -nosession -noPlugin | |
| [diff] | |
| tool = bc4 | |
| [difftool] |
| Overview: | |
| 1. Client built logging framework | |
| 2. Framework uses WMI & "installer(?)" needs to create custom categories ("LogEvent" class inherits from System.Management.Instrumentation.BaseEvent), so must run under full trust. | |
| 3. He wants to roll it out to 38 apps/sites, all still on .NET Framework 3.5. Not sure about how many servers host it, but see #4. | |
| 4. Overheard question from yesterday was, "I'm trying to build an msi to install on all of the machines, but I can't figure out how to make it install into x64 if machine can handle it, and x86 if machine is not x64" |
| [alias] | |
| timesheet = reflog --pretty=format:'(%cd) %h - %d %s [%an]' --abbrev-commit --date-order --date=local --author=coridrew | |
| ts = reflog --pretty=format:'(%cd) %h - %d %s [%an]' --abbrev-commit --date-order --date=local --author=coridrew | |
| timesheetPretty = reflog --pretty=format:'%Cgreen(%cd) %Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue) [%an]%Creset' --abbrev-commit --date-order --date=local --author=coridrew | |
| tsp = reflog --pretty=format:'%Cgreen(%cd) %Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue) [%an]%Creset' --abbrev-commit --date-order --date=local --author=coridrew | |
| timesheetAll = reflog --pretty=format:'(%cd) %h - %d %s [%an]' --abbrev-commit --date-order --date=local | |
| tsa = reflog --pretty=format:'(%cd) %h - %d %s [%an]' --abbrev-commit --date-order --date=local | |
> git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
$ git fetch origin
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| # Initial Setup # | |
| ################# | |
| #The command to run, built from the raw link of this gist | |
| #START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/cygnull/9546ec8639da7849d3a4098a7ee9a8c7/raw/0ad14b79d360826d83ff462eb072649578ae7d6a/Boxstarter-InitialSetup.txt | |
| #As described here: http://boxstarter.org/Learn/WebLauncher | |
| ######################################### | |
| # Set Execution Policy and Disable UAC # |