Also, who knew you could compare files with Visual Studio?
Navigate to -- Ctrl+, -- is another discovery, as well as moving lines up and down with Alt-Up and Alt-Down.
Visual Studio's most useful (and underused) tips
This is just a spot to keep miscellaneous links. It also shows you what a geek I am.
$ git tfs clone https://tfsserver/tfs/DefaultProjectCollection/ "$/path/to/tfs/project"
TFS repository can not be root and must start with "$/".
You may be able to resolve this problem.
The solution? Prepend MSYS_NO_PATHCONV=1 to the command, e.g.:$ MSYS_NO_PATHCONV=1 git tfs clone https://tfsserver/tfs/DefaultProjectCollection/ "$/path/to/tfs/project"
Initialized empty Git repository in C:/Projects/path/to/tfs/project/.git/
Fetching from TFS remote 'default'...
C6782 = 81584efc08348f7dc4c81297e4e82115789a1e3d
C6784 = 6a6a8bd55111286b24c7acd4825e4ef79030d693
C6863 = 60e8369f34b16a6123d7ed22bf60e59db46ee2e9
etc.
$ echo "* text=auto" >>.gitattributes $ rm .git/index # Remove the index to force Git to $ git reset # re-scan the working directory $ git status # Show files that will be normalized $ git add -u $ git add .gitattributes $ git commit -m "Introduce end-of-line normalization"Source: http://git-scm.com/docs/gitattributes#_end_of_line_conversion
rm .git/index followed by git reset is the same as git rm --cached -r.) [EDIT: I realize upon studying this that this version will touch all files in the source tree, whereas the version above does not.]$ echo "* text=auto" >>.gitattributes $ git rm --cached -r . $ git reset --hard $ git add . $ git commit -m "Normalize all the line endings"Source: Refreshing a repository after changing line endings (Github)
$ git rm --cached -r . $ git add .gitignore $ git add . $ git commit -m "Remove ignored files."
git reset vs git reset --hardgit reset and git reset --hard in the Github approach. I'll have to think about that another time. :)
git merge-file, which redoes the merge -- looks particularly interesting and powerful and helps out in the classic newlines style situations I often find myself in.Do
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys ("{SCROLLLOCK}")
Set WSHShell = Nothing
WScript.Sleep (2*1000)
Loop
Save as a VBS and run on whatever machine you want to stay open.Do
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.SendKeys ("{SCROLLLOCK}{SCROLLLOCK}")
Set WSHShell = Nothing
WScript.Sleep (60*1000)
Loop
$ git rm --cached -r .Step 2 (optional): if it wasn't already present, add the .gitignore folder obtained from, e.g. the gitignore project:
$ git add .gitignoreStep 3: add back the folder
$ git add .
$ git commit -m "Remove ignored files."Voila! The resulting commit status (or diff) will show all undesired files being removed.
Processor performance object not found on PC01 Try running Exctrlst from microsoft.com to repair the performance counters.The
Exctrlst in question is from the Windows Resource Kit. After installing and running the Exctrlst utility, it still didn’t work. Luckily, more Googling led me to running this command:lodctr /rWhich of course didn’t work either. First I got an
error code 5, which I recognized as the old “Access denied” error code, so I ran it again as Administrator. No dice. That just gave me an error code 2.C:\> cd C:\Windows\SysWOW64 C:\Windows\SysWOW64> lodctr /r Info: Successfully rebuilt performance counter setting from system backup storeYay! And finally:
C:\Windows\SysWOW64> winmgmt.exe /RESYNCPERF C:\Windows\SysWOW64>A subsequence
pslist worked perfectly.
<div class="row"> <div class=”col-md-12”>This is some content inside the column</div> </div>
<div class=”container”> <div class="row"> <div class=”col-md-12”>This is some content inside the column</div> </div> </div>
$ git tfs clone https://me.visualstudio.com/DefaultCollection/_versionControl $/MyProject TFS repository can not be root and must start with "$/". You may be able to resolve this problem. - Try using $/C:/Program Files/Git/MyProject
$ MSYS_NO_PATHCONV=1 git tfs clone https://me.visualstudio.com/DefaultCollection/ $/MyProject Initialized empty Git repository in C:/Projects/MyProject/.git/
$ git tfs clone https://me.visualstudio.com/DefaultCollection/ $//MyProject Initialized empty Git repository in C:/Projects/MyProject/.git/
ML Dialects and Haskell: SML, OCaml, F#, Haskell - Hyperpolyglot
99 Bottles of Beer | Language F#
99 Bottles of Beer | Language Haskell
git diff -w | git apply --cached --ignore-whitespace